Configure the location of the XML source data and the schema
that you want to use.
Procedure
- In the Assembly Outline, click the XML parser step . By
default, the Configuration tab for the step
opens. The following figure shows the Configuration tab
for the step:
- On the XML Source tab, specify the
location of the XML source data. In this example, the XML source data
is in the single file departments.xml. Select Single
file, and then click Insert Parameter and
select the xml_example_root_folder parameter.
You will specify the exact location of the file when you run the job.
You can also specify the absolute path to departments.xml.
- On the Document Root tab, select
the schema element that describes the documents that the step parses.
- Click Browse, and then open the
Schemas_for_XML_examples library, which is the library into which
you imported the Organization.xsd and Employee.xsd schemas.
- Click to open the namespace, http://ibm.com/infosphere/xml/Organization,
click the root element department, and then click OK.
The Document Root tab displays the structure
of the schema. The step Output also displays this same structure.
- On the Validation tab, select Strict
Validation. By selecting Strict
Validation, you automatically ensure that the data types
conversion is performed. If you use the default Minimal
Validation, all data types are treated as String type.
The following figure shows the output schema of the Parser
step: