You can create a mapping statement by dragging a node from the input schema to a node in the output schema. The XMap editor adds the mapping statement to the mapping statement grid.
To open the XMap editor, in the
Overview
view, click the XMap link.
The XMap editor appears and shows the input and output schemas.
Drag the mouse from the
Line
input schema node to the
ProjectDetails
output schema node.
Both schema nodes are repeating nodes, so the XMap editor creates a Repeating Group statement named
Line to ProjectDetails
in the grid. Statements under the Repeating Group statement are iterated for each group of input data to provide project order information to the output.
Drag the mouse from the bottom
FlexCDM_PurchaseCommit
input schema node to the
ProjectLevel
output schema node.
The XMap editor creates a Map statement in the grid.
This statement passes the project level data to the output XML.
Drag the mouse from the
SiteName
input schema node to the
SupplierSite
output schema node.
The XMap editor creates a Map statement in the grid. This statement passes the supplier site name to the output XML.
The following figure shows how the XMap links the XML input elements to the XML output in Repeating Group and Map statements:
Drag the mouse from the
Line
input schema node to the
Customer
output schema node.
Both schema nodes are repeating nodes, so the XMap editor creates a Repeating Group statement named
Line to Customer
in the grid. Statements under the Repeating Group statement are iterated for each group of input data to provide customer order information to the output.
Drag the mouse from the bottom level
CustomerName
input schema node to the
Customer
output schema node.
The XMap editor creates a Map statement in the grid.
This statement passes the customer name to the output XML.
Drag the mouse from the bottom level
SiteName
input schema node to the
Site
output schema node.
The XMap editor creates a Map statement in the grid.
This statement passes the order site name to the output XML.
Drag the mouse from the bottom level
CustomerItemName
input schema node to the
Item
output schema node.
The XMap editor creates a Map statement in the grid.
This statement passes the order item to the output XML.
Drag the mouse from the
Quantity
input schema node to the
Amount
output schema node.
The XMap editor creates a Map statement in the grid. This statement passes the supplier site name to the output XML.
The following figure shows how the final XMap links the XML input elements to the XML output elements: