Nuclos XML structure definition: XPath, structure match, attribute match, xpath2value, well-formed, mixed content, XML import. |
Language: Deutsch · English
Map XML to business objects – structure/attribute match, xpath2value and the limits of the XML import.
Auf dieser Seite |
The XML import closely follows the CSV structure definition; here we only cover the differences. There are XML structure definitions (mapping per BO) and the XML file import (ordering).
| Field | Meaning |
|---|---|
| Match (structure) | simple XPath that triggers attribute processing. |
| Business object | the BO that is created/updated/deleted. |
| Match (attribute) | XPath relative to the structure match, selects the node to transfer. |
| Attribute (BO) | target field for the extracted value. |
| Calculation expression | Groovy script with xpath2value (map), line, log – e.g. to compose a value from several nodes. |
| Format | as in the CSV import; only effective without a script. |
Map (relative XPath → value).xpath2value.Limitations: the file must be well-formed (no schema needed/possible); mixed content is not supported (an element contains either text or child elements); a BO's data must reside in one contiguous subtree and is loaded fully into memory – so keep it small. The XML import is unsuitable for deeply nested structures. |