<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert a Delimited File to XML output with an XSD in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376291#M138497</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;how could the job design be changed so that there would be one shiporder with multiple items. janhess isn't being picky, that's the true requirement.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Janhess and Jebu 
&lt;BR /&gt;Set the item element as loop element and shiporder as group element. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Wed, 04 May 2011 09:27:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-05-04T09:27:53Z</dc:date>
    <item>
      <title>Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376284#M138490</link>
      <description>Hello, 
&lt;BR /&gt;I am new to Talend so apologies for what is probably a very simple job - I just can't seem to figure it out. In my example I have a "complex" delimited file which is as follows: 
&lt;BR /&gt; 
&lt;PRE&gt;O|1234|John Smith|Ola Nordmann|Langgt 23|4000 Stavanger|Norway&lt;BR /&gt;I|1234|Empire Burlesque|1|10.90|Special Edition&lt;BR /&gt;I|1234|Hide your heart|1|9.90&lt;/PRE&gt; 
&lt;BR /&gt;Which is structured as follows: 
&lt;BR /&gt; 
&lt;PRE&gt;recordType|orderId|OrderPerson|ShipToName|Address1|Address2|Address3&lt;BR /&gt;recordType|orderId|title|quanity|price|notes&lt;/PRE&gt; 
&lt;BR /&gt;Therefore I have created a tFileInputMSDelimited component to process the input file which generates two outputs "row_A_1" (the order) and "row_B_1" (the items). 
&lt;BR /&gt;I want to now convert this file to XML, I have the following XSD: 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1" ?&amp;gt;&lt;BR /&gt;&amp;lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&amp;gt;&lt;BR /&gt;&amp;lt;xs:element name="shiporder"&amp;gt;&lt;BR /&gt;  &amp;lt;xs:complexType&amp;gt;&lt;BR /&gt;    &amp;lt;xs:sequence&amp;gt;&lt;BR /&gt;      &amp;lt;xs:element name="orderperson" type="xs:string"/&amp;gt;&lt;BR /&gt;      &amp;lt;xs:element name="shipto"&amp;gt;&lt;BR /&gt;        &amp;lt;xs:complexType&amp;gt;&lt;BR /&gt;          &amp;lt;xs:sequence&amp;gt;&lt;BR /&gt;            &amp;lt;xs:element name="name" type="xs:string"/&amp;gt;&lt;BR /&gt;            &amp;lt;xs:element name="address" type="xs:string"/&amp;gt;&lt;BR /&gt;            &amp;lt;xs:element name="city" type="xs:string"/&amp;gt;&lt;BR /&gt;            &amp;lt;xs:element name="country" type="xs:string"/&amp;gt;&lt;BR /&gt;          &amp;lt;/xs:sequence&amp;gt;&lt;BR /&gt;        &amp;lt;/xs:complexType&amp;gt;&lt;BR /&gt;      &amp;lt;/xs:element&amp;gt;&lt;BR /&gt;      &amp;lt;xs:element name="item" maxOccurs="unbounded"&amp;gt;&lt;BR /&gt;        &amp;lt;xs:complexType&amp;gt;&lt;BR /&gt;          &amp;lt;xs:sequence&amp;gt;&lt;BR /&gt;            &amp;lt;xs:element name="title" type="xs:string"/&amp;gt;&lt;BR /&gt;            &amp;lt;xs:element name="note" type="xs:string" minOccurs="0"/&amp;gt;&lt;BR /&gt;            &amp;lt;xs:element name="quantity" type="xs:positiveInteger"/&amp;gt;&lt;BR /&gt;            &amp;lt;xs:element name="price" type="xs:decimal"/&amp;gt;&lt;BR /&gt;          &amp;lt;/xs:sequence&amp;gt;&lt;BR /&gt;        &amp;lt;/xs:complexType&amp;gt;&lt;BR /&gt;      &amp;lt;/xs:element&amp;gt;&lt;BR /&gt;    &amp;lt;/xs:sequence&amp;gt;&lt;BR /&gt;    &amp;lt;xs:attribute name="orderid" type="xs:string" use="required"/&amp;gt;&lt;BR /&gt;  &amp;lt;/xs:complexType&amp;gt;&lt;BR /&gt;&amp;lt;/xs:element&amp;gt;&lt;BR /&gt;&amp;lt;/xs:schema&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;Therefore I have created a tFileOutputMSXML component and Imported the XSD document as the XML Tree. 
&lt;BR /&gt;How do I get the two different output rows to map to the XML and produce the output? 
&lt;BR /&gt;Any assistance would be greatly appreciated - I'm losing what little hair I have left!! 
&lt;BR /&gt;Cheers 
&lt;BR /&gt;Andy</description>
      <pubDate>Sat, 16 Nov 2024 13:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376284#M138490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376285#M138491</link>
      <description>Hello 
&lt;BR /&gt;1)As you have done, using tFileInputMSDelimited component to process the input file which generates two outputs "row_A_1" (the order) and "row_B_1" (the items), and store them into memory. 
&lt;BR /&gt;2)Read them from memory and do a inner join on tMap, concatenate all the fileds on output table. 
&lt;BR /&gt;3)Define the xml tree manually based on your xsd file. 
&lt;BR /&gt;in.csv: 
&lt;BR /&gt; 
&lt;B&gt;&lt;BR /&gt;O|1234|John Smith|Ola Nordmann|Langgt 23|4000 Stavanger|Norway&lt;BR /&gt;I|1234|Empire Burlesque|1|10.90|Special Edition&lt;BR /&gt;I|1234|Hide your heart|1|9.90&lt;BR /&gt;O|1235|shong|talend|Langgt 24|5000 Stavanger|Norway1&lt;BR /&gt;I|1235|Empire Burlesque|1|11.20|Special Edition&lt;BR /&gt;I|1235|Hide your heart|1|19.90|note2&lt;BR /&gt;&lt;/B&gt; 
&lt;BR /&gt;out.xml: 
&lt;BR /&gt; 
&lt;B&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&lt;BR /&gt; &amp;lt;shiporder orderid="1234"&amp;gt;&lt;BR /&gt; &amp;lt;orderperson&amp;gt;John Smith&amp;lt;/orderperson&amp;gt;&lt;BR /&gt; &amp;lt;shipto&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;Ola Nordmann&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;address&amp;gt;Langgt 23&amp;lt;/address&amp;gt;&lt;BR /&gt; &amp;lt;city/&amp;gt;&lt;BR /&gt; &amp;lt;country/&amp;gt;&lt;BR /&gt; &amp;lt;/shipto&amp;gt;&lt;BR /&gt; &amp;lt;item&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Empire Burlesque&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;note&amp;gt;Special Edition&amp;lt;/note&amp;gt;&lt;BR /&gt; &amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&lt;BR /&gt; &amp;lt;price&amp;gt;10.9&amp;lt;/price&amp;gt;&lt;BR /&gt; &amp;lt;/item&amp;gt;&lt;BR /&gt; &amp;lt;/shiporder&amp;gt;&lt;BR /&gt; &amp;lt;shiporder orderid="1234"&amp;gt;&lt;BR /&gt; &amp;lt;orderperson&amp;gt;John Smith&amp;lt;/orderperson&amp;gt;&lt;BR /&gt; &amp;lt;shipto&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;Ola Nordmann&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;address&amp;gt;Langgt 23&amp;lt;/address&amp;gt;&lt;BR /&gt; &amp;lt;city/&amp;gt;&lt;BR /&gt; &amp;lt;country/&amp;gt;&lt;BR /&gt; &amp;lt;/shipto&amp;gt;&lt;BR /&gt; &amp;lt;item&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Hide your heart&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;note&amp;gt;&amp;lt;/note&amp;gt;&lt;BR /&gt; &amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&lt;BR /&gt; &amp;lt;price&amp;gt;9.9&amp;lt;/price&amp;gt;&lt;BR /&gt; &amp;lt;/item&amp;gt;&lt;BR /&gt; &amp;lt;/shiporder&amp;gt;&lt;BR /&gt; &amp;lt;shiporder orderid="1235"&amp;gt;&lt;BR /&gt; &amp;lt;orderperson&amp;gt;shong&amp;lt;/orderperson&amp;gt;&lt;BR /&gt; &amp;lt;shipto&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;talend&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;address&amp;gt;Langgt 24&amp;lt;/address&amp;gt;&lt;BR /&gt; &amp;lt;city/&amp;gt;&lt;BR /&gt; &amp;lt;country/&amp;gt;&lt;BR /&gt; &amp;lt;/shipto&amp;gt;&lt;BR /&gt; &amp;lt;item&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Empire Burlesque&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;note&amp;gt;Special Edition&amp;lt;/note&amp;gt;&lt;BR /&gt; &amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&lt;BR /&gt; &amp;lt;price&amp;gt;11.2&amp;lt;/price&amp;gt;&lt;BR /&gt; &amp;lt;/item&amp;gt;&lt;BR /&gt; &amp;lt;/shiporder&amp;gt;&lt;BR /&gt; &amp;lt;shiporder orderid="1235"&amp;gt;&lt;BR /&gt; &amp;lt;orderperson&amp;gt;shong&amp;lt;/orderperson&amp;gt;&lt;BR /&gt; &amp;lt;shipto&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;talend&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;address&amp;gt;Langgt 24&amp;lt;/address&amp;gt;&lt;BR /&gt; &amp;lt;city/&amp;gt;&lt;BR /&gt; &amp;lt;country/&amp;gt;&lt;BR /&gt; &amp;lt;/shipto&amp;gt;&lt;BR /&gt; &amp;lt;item&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Hide your heart&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;note&amp;gt;note2&amp;lt;/note&amp;gt;&lt;BR /&gt; &amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&lt;BR /&gt; &amp;lt;price&amp;gt;19.9&amp;lt;/price&amp;gt;&lt;BR /&gt; &amp;lt;/item&amp;gt;&lt;BR /&gt; &amp;lt;/shiporder&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;/B&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Sat, 20 Feb 2010 03:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376285#M138491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-20T03:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376286#M138492</link>
      <description>Thanks Shong, that's exactly what I was looking for.</description>
      <pubDate>Sun, 21 Feb 2010 23:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376286#M138492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-21T23:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376287#M138493</link>
      <description>I was just quoted 6 weeks by a consultant to do the exact thing you have provided here.. I did it in 2 hrs (and thats just learning talend).   Thank you very much and I cannot wait to tell the team about Talend</description>
      <pubDate>Sat, 19 Mar 2011 11:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376287#M138493</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-03-19T11:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376288#M138494</link>
      <description>Hello kevinc,
&lt;BR /&gt;Thank you for your positive feedback!
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pcoffre.</description>
      <pubDate>Mon, 21 Mar 2011 13:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376288#M138494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-21T13:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376289#M138495</link>
      <description>I don't want to be picky but doesn't the XSD say that there should be multiple items to a shiporder?</description>
      <pubDate>Mon, 21 Mar 2011 14:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376289#M138495</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-03-21T14:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376290#M138496</link>
      <description>how could the job design be changed so that there would be one shiporder with multiple items. janhess isn't being picky, that's the true requirement.</description>
      <pubDate>Tue, 03 May 2011 21:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376290#M138496</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-05-03T21:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376291#M138497</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;how could the job design be changed so that there would be one shiporder with multiple items. janhess isn't being picky, that's the true requirement.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Janhess and Jebu 
&lt;BR /&gt;Set the item element as loop element and shiporder as group element. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 04 May 2011 09:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376291#M138497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-04T09:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376292#M138498</link>
      <description>Thanks shong.</description>
      <pubDate>Wed, 04 May 2011 09:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376292#M138498</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-05-04T09:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376293#M138499</link>
      <description>brilliantly easy. thanks shong.</description>
      <pubDate>Wed, 04 May 2011 11:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376293#M138499</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-05-04T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376294#M138500</link>
      <description>Hi Shong,
&lt;BR /&gt;Where do I find the tHashInput and output components? Can you achieve the same thing with tBufferInput ?
&lt;BR /&gt;I have searched the Palette and the TOS Components Reference Guide, but nothing shows up.
&lt;BR /&gt;Is this a feature of another version of the TOS software? I have tried v4.1 and v4.2.2.
&lt;BR /&gt;thanks Bill</description>
      <pubDate>Tue, 25 Oct 2011 11:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376294#M138500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-25T11:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376295#M138501</link>
      <description>Hi,&lt;BR /&gt;I found the tHash* components in the ProjectSettings &amp;gt; Designer &amp;gt; PaletteSettings.&lt;BR /&gt;And no, the tBuffer* component  didn't provide the same funtionality.</description>
      <pubDate>Thu, 27 Oct 2011 12:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376295#M138501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-27T12:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376296#M138502</link>
      <description>Hi, guys, registered to thank you for the great solution provided in here. You've saved tones of my nerves and time</description>
      <pubDate>Fri, 28 Oct 2011 14:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376296#M138502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-28T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Delimited File to XML output with an XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376297#M138503</link>
      <description>Has anyone tried this with more complex XSD ? I'm new and trying with latest Talend version to produce Obama care 1094 95 xml files with IRS XSD file.</description>
      <pubDate>Wed, 14 Oct 2015 19:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-a-Delimited-File-to-XML-output-with-an-XSD/m-p/2376297#M138503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-14T19:22:23Z</dc:date>
    </item>
  </channel>
</rss>

