Originally posted by: JWienhusen
Hey everyone.
Im currently working as a trainee and got a task to work with wtx.
Since im completly new to wtx i got a ton of problems with it.
I thought that i could maybe work on it on the weekend so i could shine with my results next week, but unfortunatly im not getting very far.
I got a simple CSV as input and i should get a xml as output.
CSV:
A;B;C
D;E;F
G;H
XML:
<?xml version="1.0"?>
-<RootItem>
-<Item>
<Column0>A</Column0>
<Column1>B</Column1>
<Column2>C</Column2>
</Item>
-<Item>
<Column0>D</Column0>
<Column1>E</Column1>
<Column2>F</Column2>
</Item>
-<Item>
<Column0>G</Column0>
<Column1>H</Column1>
</Item>
</RootItem>
I already created a valid and wellformed xsd for my xml
XSD:
<?xml version ="1.0"?>
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="RootItem">
<xs:complexType>
<xs:sequence>
<xs:element name="Item" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Column0" type="xs:string"/>
<xs:element name="Column1" type="xs:string"/>
<xs:element name="Column2" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Since i have barely any knowledge about mapping and i dont have any contact person on the weekend i thought i would ask in this forum.
I would gladly take any hints or tips that would make it easier for me to understand what i need to do.
Thanks in advance! :)
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange