Example 1: Parsing XML data
Create a simple job that uses the Hierarchical Data stage and the XML Parser step to parse employee data, which is stored in one XML data file, into two flat files.
About this task
This basic parsing example uses the sample XML data file, departments.xml, and the sample schemas, Employee.xsd and Organization.xsd, to illustrate parsing source data from one XML file into two files. The departments.xml file contains information about the employees of one department in a company. In this example, you parse the XML data into two files. One file contains employee business information: employee name, date of hire, date of birth, gender, title, employee ID and department ID. The second file contains employee address information: employee ID, street, city, state, postal code, country, and address type.
To create the example, complete these tasks: