Step 10.3: Configuring the XML Parser step

Configure the location of the XML source data and the schema that you want to use.

Procedure

  1. 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:
    The Configuration tab for the XML Parser step.
  2. 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.
  3. On the Document Root tab, select the schema element that describes the documents that the step parses.
    1. 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.
    2. 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.
  4. 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:

    The Output Schema of the Parser step