Table of Contents

Search

Data Transformation Getting Started Guide

Data Transformation Getting Started Guide

Step 2. Create an XMap

Step 2. Create an XMap

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.
  1. In the Developer Data Processor transformation
    Objects
    view, click
    New.
  2. Select XMap and click
    Next.
  3. Enter a name for the XMap.
  4. 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.
  5. 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.
  6. 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
  7. 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
  8. 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.
  9. To add a schema that defines the output, select
    Add reference to a Schema Object
    .
  10. 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
  11. 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.
  12. Click
    Finish
    .
    The Developer tool creates a view for the XMap that you created. Click the view to configure the XMap.