Description:
This processor splits an XML file into multiple separate FlowFiles, each comprising a child or descendant of the original root element.
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. If a property has a default value, it is indicated. If a property supports the use of the NiFi Expression Language (or simply, "expression language"), that is also indicated.
- Line Depth
- The XML-nesting depth at which to start splitting the XML fragments. A depth of 1 means to split the root's children; whereas a depth of 2 means to split the root's children's children, and so forth.
- Default value: 1
- Supports expression language: false
Relationships:
- failure
- If a FlowFile fails processing for any reason (for example, if the FlowFile is not valid XML), then it follows this relationship and does not go down the original relationship.
- original
- If FlowFiles are successfully split, a copy of the original FlowFile follows this relationship.
- splits
- If FlowFiles are successfully split into one or more files, those split files follow this relationship.