Output Format "Xml"
This output format generates an XML file from the index data of the document. The file attachments of the document can be embedded, or references to file attachments to be carried externally can be generated.
Property | Description |
|---|---|
OutputFormat[].AttachFileMode | Mode determining how additional file attachments are added to the XML file:
The physical availability of the files in the file system that are referenced in the |
OutputFormat[].FieldNode | By default, when successively building the XML file, nodes of the same path are generated only once. Only subnodes that do not yet exist are created anew. However, if all header data output fields are to be output under the same, repeating node name, define the path of this node to be generated multiple times here. In |
OutputFormat[].ItemNode[] | Subparameters for defining repeating eponymous nodes to be set up, each representing a row of tabular data The operation is analogous to the
The In the field mappings under |
OutputFormat[].ItemFieldNode[] | Subparameters for defining the table fields to be created repeatedly with the same name below a table row node The operation is analogous to the
The Specify the |
OutputFormat[].AttachFileNode(*) | Definition of XML nodes in XPath syntax under which the reference to file attachments or the binary data of file attachments are output This definition is required in the
The path defined in the |
OutputFormat[].AttachFileRefMacro | Macro expression for formatting the file reference value in The default value is preset with the expression |
The following example shows an extract of a configuration and the resulting structure of the XML data. The XPath expressions for the nodes to be generated are of primary interest.
Notice
XPath represents a syntax for querying XML content, which has been adapted here in a rudimentary manner so that XML files can also be created with a similar notation. The only syntax elements that are supported are simple path specifications with nodes and attributes. The use of namespaces is not supported.
{
"OutputFormat": [
{
"ItemNode": [
"ItemNode: /Document/Item"
],
"AttachFileNode": "File: /Document/File, Name: @name"
"Field": [
{
"Name": "Field1",
"OutputName": "/Document/Field[@name='Field1']"
},{
"Name": "Items.Field1",
"OutputName": "Field[@name='ItemsField1']"
}
]
}
]
}The following XML data is generated from this configuration:
<Document> <Field name="Field1">…</Field> <Item> <Field name="ItemsField1">…</Field> </Item> <File name="…">…</File> </Document>
The configuration is somewhat more complex if the field name is not to be output in the same node as its value, but in a parallel node:
<Field> <Name>Field1</Name> <Value>…</Value> </Field>
This variant is supported only in combination with a set .FieldNode (or .ItemFieldNode[] for tables). To also define the name node and value, use the following subparameters for the .OutputName:
ValueNode*: relative path of the node to output the field value in XPath syntaxValueNode: relative path of the node to output the field name in XPath syntaxName: field name to be output
The properties from the example above are thus to be added or changed as follows:
{
"OutputFormat": [
{
"FieldNode": "/Document/Field",
"ItemFieldNode": [
"FieldNode: Field"
],
"Field": [
{
"Name": "Field1",
"OutputName": "ValueNode: Value, NameNode: Name, Name: Field1"
},{
"Name": "Items.Field1",
"OutputName": "ValueNode: Value, NameNode: Name, Name: ItemsField1"
}
]
}
]
}