XML Parser Stage

The XML parser stage parses whole XML documents by default, but it can also be configured to parse only specific nodes without loading the entire document into memory. It can also split an XML document into multiple documents. XPATH-like expressions are used to select specific nodes to parse, such as /posts/row or /posts/record. Nested XML elements are flattened.

To create new documents from selected elements, configure rootPaths.

The XML Transformation index pipeline stage is deprecated in favor of this parser stage.
When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.

XML stage-specific properties

Property Description, Type

Enable this Parser Stage

type: boolean

default value: 'true'


Error Handling

type: string

default value: 'mark'

enum: { ignore log fail mark }


Parser ID

type: string

default value: '0d6b50ce-f7b3-44bc-94c2-0041bce44d26'


use default media types for this Parser Stage

Indicates if parser stage should use the default media types. Unchecking this box means that ONLY the manually configured media types will be parsed by the parser and you then MUST provide at least one media type.

type: boolean

default value: 'true'


XML List handling

Create a single multivalued field containing all items, or a separate index-numbered field per list item?

type: string

default value: 'multivalued'

enum: { multivalued index_numbered }


Maximum output size for each document

Maximum number of XML characters, excluding extra whitespace, that will be processed from each source document node to produce an output document

type: integer

default value: '65536'


Media Types for this Parser Stage

type: array of string


Prefix parsed fields with

Fields extracted by this parser will be prefixed with this string. The remainder of the field name will be as detected in the stream

type: string

maxLength: 20

pattern: ^$|^[A-Za-z_][A-Za-z0-9_\-\.]+$


File names to parse

Specify a file name or pattern that must be matched for this parser stage to run. Forward slashes ("/") are used to join names of files inside archives with the archive name.

type: array of object

object attributes: {
  pattern : {
    display name: File name or pattern
    type: string
    description : e.g.: "z.txt" or "*.md" or "/a/*/b/f.txt" for glob; "z.txt$" or ".*\.txt$" or "^/a/[^\/]*/b/f.txt$" for regex
  syntax : {
    display name: Pattern type
    type: string
    default value: 'glob'
    description : glob uses bash shell-style wildcards; regex uses Java (PCRE-style) regex
    enum: { glob regex     }


Root paths

Read XML elements that can be found on specified XML paths and parse them into separate documents

type: array of string

default value: '/'



type: string

default value: 'xml'

enum: { xml }