Skip to main content

XML Parser

Parses XML. See Supported reader-parser combinations for compatible readers. See also XML Parser V2.

XML Parser properties

property

type

default value

notes

Column List

String

if left blank, all key-value pairs will be returned as part of the data array

Root Node

String

Separator

String

optional

The output type of a source using XMLParser is WAEvent.

XML Parser example

... PARSE USING XMLParser(
  rootnode:'/log4j:event',
  columnlist:'log4j:event/@timestamp,
    log4j:event/@level,
    log4j:event/log4j:message,
    log4j:event/log4j:throwable,
    log4j:event/log4j:locationInfo/@class,
    log4j:event/log4j:locationInfo/@method,
    log4j:event/log4j:locationInfo/@file,
    log4j:event/log4j:locationInfo/@line'
)...

See the discussion of Log4JSource in MultiLogApp for a detailed explanation.