Property XML Parser

This task will take an XML file and use the content to create metadata fields.


Configuration

To use this task go to the task tab in your job. Select the task from the drop down and click the plus circle to configure the task. Click done after making any changes to save.

Condition check

It will execute the task when the condition's result is 'true', 't', 'on', '1', or 'yes' (case-insensitive), or run on all conditions if left empty. This condition is evaluated for each document, determining whether the task should be executed based on the specified values.

Example: If I only want to run this task for PDF documents I would use the expression: equals('#{rd.mimetype}',"application/pdf")

Field to Parse

If the content of the file is the xml to parse, use BINARY. If the xml appears in a field, use the field name. This is a required feild.

The xml is expected in the following form:

<rootElement>

<comment>Comment Text Here</comment>

<entry key="fieldName1">fieldValue1</entry>

<entry key="fieldName2">fieldValue2</entry>

</rootElement>

  • The root element is named as such for the example. The task searches for "entry" children.

  • Comment is an optional field and will be added as comment to the document properties.