To create a Data Processor XMap object, choose the input and output schemas and add mapping statements.
On the Data Processor transformation
Objects
view create an XMap. Select an input schema, an example source, and an output schema.
To open the XMap editor, click the XMap object.
To create a Map, Group, or Repeating Group mapping statement, in the XMap editor drag and drop from a node in the input hierarchical schema to a node in the output hierarchical schema.
The XMap editor creates a map link between the nodes. The mapping statement appears in the grid. The XMap editor automatically completes the mapping statement fields.
To create conditional logic in the grid, add a Router mapping statement as follows:
Under the Router mapping statement, create Option mapping statements. Drag and drop input and output schema nodes into the Option statement fields in the grid.
Under the Router mapping statement create one Default mapping statement to specify what happens if no Option mapping statement applies.
Under the Option mapping statements, create Map mapping statements to specify conditions to map the input node to the output node.
To provide a common context for a group of statements, add a Group mapping statement. Nest Map mapping statements under the Group mapping statement.
To call another XMap object, add a Run XMap statement.
To change the context and logic for a mapping statement, edit mapping statement properties as follows:
Demote statements to be child statements, or promote statements to be parent statements.
Create XPath expressions to change the context or add predicates using the XPath editor.