Document toolboxDocument toolbox

XML Parser

Description

This unit is a Processor unit type.

The XML Parser unit parses events containing a properly formatted XML, using the Jackson parser.

An event comes in through the in port. The data field content is parsed using Jackson.

Successfully parsed input events are enriched with a new field containing the parse result and are output through the out port.

If an error occurs, the input event is enriched with new fields describing the problem, and the event is sent through the error port.
       

Configuration

After dragging this unit into the Flow canvas, double-click it to access its configuration options. The following table describes the configuration options of this unit:

TabFieldDescription

General

NameEnter a name for the unit. It must start with a letter, and cannot contain spaces. Only letters, numbers, and underscores are allowed.
In fieldEnter the name of the input event field containing JSON data.
Out fieldEnter a name for the output event field containing the parse result.

Input ports

PortDescription
inEvents containing a properly formatted XML to be parsed.

Output ports


PortDescription
outOutputs events enriched with an extra field containing the parsed XML.
errorSignals when an error occurred. Outputs input events enriched with standard error fields.