Originally posted by: SystemAdmin
Your input file came from W3C tutorial here:
http://www.w3schools.com/XML/xml_validator.asp W3C also provided the following XML Schema that describes this document:
<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="heading" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
If you are using WTX version 8.2 or later then using this schema instead of a type tree.
If not then import this schema into a type tree.
1. Save the schema as an XSD file.
2. Open the type tree designer.
3. Select "Import..." under the Tree menu.
4. Select "XML Schema" and follow the rest of the wizard.
The reason to use WTX is because it automates the process of describing the data structures. It allows coders to input XML Schemas, COBOL copybooks, XML DTD's and Java Classes among other things and it also generates type trees that describe relational database table, queries and stored procedures.
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender