SplitXml 2.3.0¶

BUNDLE¶

org.apache.nifi | nifi-standard-nar

DESCRIPTION¶

Splits an XML File into multiple separate FlowFiles, each comprising a child or descendant of the original root element

TAGS¶

split, xml

INPUT REQUIREMENT¶

REQUIRED

Supports Sensitive Dynamic Properties¶

false

PROPERTIES¶

Property

Description

Split Depth

Indicates the XML-nesting depth to start splitting XML fragments. A depth of 1 means split the root’s children, whereas a depth of 2 means split the root’s children’s children and so forth.

RELATIONSHIPS¶

NAME

DESCRIPTION

failure

If a FlowFile fails processing for any reason (for example, the FlowFile is not valid XML), it will be routed to this relationship

split

All segments of the original FlowFile will be routed to this relationship

original

The original FlowFile that was split into segments. If the FlowFile fails processing, nothing will be sent to this relationship

WRITES ATTRIBUTES¶

NAME

DESCRIPTION

fragment.identifier

All split FlowFiles produced from the same parent FlowFile will have the same randomly generated UUID added for this attribute

fragment.index

A one-up number that indicates the ordering of the split FlowFiles that were created from a single parent FlowFile

fragment.count

The number of split FlowFiles generated from the parent FlowFile

segment.original.filename

The filename of the parent FlowFile