This connection makes use of XML, XSD, and XPATH technology as documented here.
This connection uses the XML Schema Definition common import UI as documented here.
The XML Mapping Page will display the structure of the XML document based on setting on the XML Schema Definition page and allow elements and attributes to be mapped to an incoming line. Clicking and dragging a node from the tree will dynamically create XPath macro commands.
The general tab is used to define the base element path and specify relative XPath macro commands for mapping fields commonly used by the wizard.
•Base Element XPath: This is the XPath expression that specifies selection criteria for the document elements that represents an account line. These will typically be a repeating element within the XML document. This field is required to be filled in first if using drag and drop to generate XPath macros for the remaining fields as they will be written automatically by the program relative to this expression path. While this field is macro enabled for those that want more control over the process the XPath macro command cannot be used in this field - only XPath expressions.
•Selection XPath: Optional selection XPath expression that can be used to override the Base Element XPath expression for purpose of selection while allowing the Base Element XPath expression to be used by the designer for writing relative XPath macro commands. This is typically used when the selection XPath expression is anything other than a fully qualified expression without filter criteria.
•Account Code: The identifying account code for the account. This is a macro-enabled field.
•Account Type: The type of the account. This is a macro-enabled field.
•Description: The description for an account. This is a macro-enabled field.
•Currency: The currency for an account. This is a macro-enabled field.
•Active: The active status for the account. This is a macro-enabled field.
•Site: The site for the account. This is a macro-enabled field.
XML tags from any location in the hierarchy can be made into imported from the source data. Drag and drop of tags from the hierarchical document tree onto any control with a yellow background will automatically write XPath macro commands
•Base Element Relative XPath: This is an optional value used to specify an XPath expression used to establish a path relative to the Base Element XPath used to select the elements that contain zero, one, or more attribute name/value pairs. When this option is used the Attribute Name Macro and Attribute Value Command should both be XPath macro expressions.
•Attribute Name Macro: This is a name or macro expression used to name the source attribute during import. When a Base Element Relative XPath is specified this should be a XPath macro command. When recursion is not used this is likely to be a hard-coded name.
•Attribute Value Macro: This is a macro command that extracts the value from the XML document to populate the imported attribute named by the Attribute Name Macro field.
Copyright © 2023 pasUNITY, Inc.
Send comments on this topic.