Table of Contents

Search

Getting Started

Getting Started

Step 2. Create a Script with a Parser

Step 2. Create a Script with a Parser

Create a Data Processor transformation and then create a Script with a Parser for the transformation. When you create a Parser, you must have a schema that describes the output XML document. You select the element in the schema that is the root element for the output XML.
  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. By default
    Parser
    is selected. If not, select it. Enter a name for the Parser.
  5. As the Script component is the first component to process data in the transformation, enable
    Set as startup component
    .
    Click
    Next.
  6. To add a schema that defines the output, select
    Add reference to a Schema Object
    . Click
    Create a new schema object
    to import a new Schema object and browse for the
    ParserSchema.xsd
    file in the
    <INSTALL_DIR>/tomcat/bin/source
    directory.
  7. To add a sample PDF file that you can use to test the Parser, browse for and select the
    Parser.pdf
    file in the
    <INSTALL_DIR>/tomcat/bin/source
    directory.
    You can change the sample PDF file.
  8. Click
    Finish
    .
    The Developer tool creates a view for each Parser or other Script object that you create. Click the view to configure the Parser.

0 COMMENTS

We’d like to hear from you!