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.
In the Developer Data Processor transformation
Objects
view, click
New
.
Select
Script
and click
Next
.
Enter a name for the Script and click
Next.
.
Select
Seralizer
, and enter a name for the Serializer.
As the Script component is the first component to process data in the transformation, enable
Set as startup component
, then click
Next
.
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.
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.
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.