ValidateXml 2.3.0¶
BUNDLE¶
org.apache.nifi | nifi-standard-nar
DESCRIPTION¶
Validates XML contained in a FlowFile. By default, the XML is contained in the FlowFile content. If the ‘XML Source Attribute’ property is set, the XML to be validated is contained in the specified attribute. It is not recommended to use attributes to hold large XML documents; doing so could adversely affect system performance. Full schema validation is performed if the processor is configured with the XSD schema details. Otherwise, the only validation performed is to ensure the XML syntax is correct and well-formed, e.g. all opening tags are properly closed.
INPUT REQUIREMENT¶
REQUIRED
Supports Sensitive Dynamic Properties¶
false
PROPERTIES¶
Property |
Description |
---|---|
Schema File |
The file path or URL to the XSD Schema file that is to be used for validation. If this property is blank, only XML syntax/structure will be validated. |
XML Source Attribute |
The name of the attribute containing XML to be validated. If this property is blank, the FlowFile content will be validated. |
RESTRICTIONS¶
REQUIRED PERMISSION |
EXPLANATION |
---|---|
reference remote resources |
Schema configuration can reference resources over HTTP |
RELATIONSHIPS¶
NAME |
DESCRIPTION |
---|---|
invalid |
FlowFiles that are not valid according to the specified schema or contain invalid XML are routed to this relationship |
valid |
FlowFiles that are successfully validated against the schema, if provided, or verified to be well-formed XML are routed to this relationship |
WRITES ATTRIBUTES¶
NAME |
DESCRIPTION |
---|---|
validatexml.invalid.error |
If the flow file is routed to the invalid relationship the attribute will contain the error message resulting from the validation failure. |