Create a Data Processor transformation and then create an XMap for the transformation. When you create an XMap, you must have a schema that describes the input and the output XML documents. You select the element in the schema that is the root element for the input XML.
In the Developer Data Processor transformation
Objects
view, click
New.
Select XMap and click
Next.
Enter a name for the XMap.
The XMap component is the first component to process data in the transformation, so ensure that
Set as startup component
is selected.
A Data Processor transformation can contain multiple components to process data. Each component might contain other components. You must identify which component is the entry point for the transformation.
Click
Next.
To add a schema that defines the input, select
Add reference to a Schema Object
.
If the schema was already imported into the repository, you can select it. However, we are using a schema that is not in the repository.
To import a schema and add it to the repository, click
Create a new schema object
and browse for the
XMapInputSchema.xsd
file in the following directory:
<INSTALL_DIR>\clients\DeveloperClient\Tutorials
To add the sample XML file that you use to test the XMap, browse for and select the
XMapExample.xml
file in the following directory:
<INSTALL_DIR>\clients\DeveloperClient\Tutorials
Choose the root for the input hierarchy.
In the
Root Element Selection
dialog box, select the
fcdm:FlexCDM_PurchaseCommit
element in the schema as the root element for the XML.
To add a schema that defines the output, select
Add reference to a Schema Object
.
To add the schema to the repository, click
Create a new schema object
and browse for the
XMapOutputSchema.xsd
file in the following directory:
<INSTALL_DIR>\clients\DeveloperClient\Tutorials
Choose the root for the output hierarchy.
In the
Root Element Selection
dialog box, select the
Order
element in the schema as the root element for the XML.
Click
Finish
.
The Developer tool creates a view for the XMap that you created. Click the view to configure the XMap.