Table of Contents

Search

Getting Started

Getting Started

Step 2. Create a Script with a Serializer

Step 2. Create a Script with a Serializer

Create a Data Processor transformation and then create a Script with a Serializer for the transformation. When you create a Serializer, you must have a schema that describes the input XML document. You select the element in the schema that is the root element for the input XML.
Before you begin, you must download and unzip the Serializer_DP.zip file. For more information, see Creating a Serializer Overview.
  1. In the Developer Data Processor transformation
    Objects
    view, click
    New
    .
  2. Select
    Script
    and click
    Next
    .
  3. Enter a name for the Script and click
    Next.
    .
  4. Select
    Seralizer
    , and enter a name for the Serializer.
  5. As the Script component is the first component to process data in the transformation, enable
    Set as startup component
    , then click
    Next
    .
  6. To add a schema that defines the input, select
    Add reference to a Schema Object
    . Click
    Create a new schema object
    to import a new Schema object and browse for the
    SerializerSchema.xsd
    file in the
    <INSTALL_DIR>/tomcat/bin/source
    directory.
  7. To add a sample file that you can use to test the Serializer, browse for and select the
    SerializerExample.pdf
    file in the
    <INSTALL_DIR>/tomcat/bin/source
    directory.
    You can change the sample file.
  8. Click
    Finish
    .
    The Developer tool creates a view for each Serializer or other Script object that you create. Click the view to configure the Serializer.

0 COMMENTS

We’d like to hear from you!