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.
In the Developer Data Processor transformation
Objects
view, click
New
.
Select
Script
and click
Next
.
Enter a name for the Script and click
Next.
.
By default
Parser
is selected. If not, select it. Enter a name for the Parser.
As the Script component is the first component to process data in the transformation, enable
Set as startup component
.
Click
Next.
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.
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.
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.