Overview: Hiererchical Data Sources are used to represent data from a XML file or a Web Service call.
The following XML and schema will be described in a processing job as a tree of hierarchical data sources:
XML:
<?xml version="1.0" encoding="utf-8"?>
<books>
<book id="1">
<title>Lord Of the Rings.</title>
<info>
<country>United Kingdom</country>
<author>J. R. R. Tolkien</author>
</info>
</book>
<book id="2">
<title>Principia Mathematica</title>
<info>
<country>U.S.A</country>
<author>Bertrand Russell</author>
<author>Alfred North Whitehead</author>
</info>
</book>
<book id="3">
<title>Black Holes, White Dwarfs and Neutron Stars: The Physics of Compact Objects</title>
<info>
<country>U.S.A</country>
<author>Stuart L. Shapiro</author>
<author>Saul A. Teukolsky</author>
</info>
</book>
</books>
XML Schema:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="books">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="book">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="info" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="country" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="author" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:unsignedByte" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
This is what the hierarchical data source tree generated from the XML above will look like: