<?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: [resolved] XML output with dynamic schema in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-XML-output-with-dynamic-schema/m-p/2323019#M92913</link>
    <description>Hi 
&lt;BR /&gt;It is impossible to define a element name base on the input data, in Talend, a XML tree is defined at the design time, not the run time. It is easy to generate the XML if you consider the following XML tree:
&lt;BR /&gt;&amp;lt;root&amp;gt;
&lt;BR /&gt;&amp;lt;info&amp;gt;
&lt;BR /&gt;&amp;lt;property_name&amp;gt;weight&amp;lt;/property_name&amp;gt;
&lt;BR /&gt;&amp;lt;property_value&amp;gt;100&amp;lt;/property_value&amp;gt;
&lt;BR /&gt;&amp;lt;/info&amp;gt;
&lt;BR /&gt;&amp;lt;info&amp;gt;
&lt;BR /&gt;&amp;lt;property_name&amp;gt;height&amp;lt;/property_name&amp;gt;
&lt;BR /&gt;&amp;lt;property_value&amp;gt;2&amp;lt;/property_value&amp;gt;
&lt;BR /&gt;&amp;lt;/info&amp;gt;
&lt;BR /&gt;...
&lt;BR /&gt;&amp;lt;/root&amp;gt;
&lt;BR /&gt;Shong</description>
    <pubDate>Wed, 04 Sep 2013 14:15:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-04T14:15:42Z</dc:date>
    <item>
      <title>[resolved] XML output with dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-XML-output-with-dynamic-schema/m-p/2323018#M92912</link>
      <description>Hi guys, first post here.&lt;BR /&gt;I've been using TOS for a few days and I'm facing a problem that I can't solve. I've looked in the forums with no success.&lt;BR /&gt;For instance, imagine I have a csv like this (first column is a Property Name and second columns is Property Value):&lt;BR /&gt;weight; 100&lt;BR /&gt;height; 2&lt;BR /&gt;eyes; blue&lt;BR /&gt;hair; black&lt;BR /&gt;I need to generate an XML file like this:&lt;BR /&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;  &amp;lt;weight&amp;gt;100&amp;lt;/weight&amp;gt;&lt;BR /&gt;  &amp;lt;height&amp;gt;2&amp;lt;/height&amp;gt;&lt;BR /&gt;  &amp;lt;eyes&amp;gt;blue&amp;lt;/eyes&amp;gt;&lt;BR /&gt;  &amp;lt;hair&amp;gt;black&amp;lt;/hair&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;Basically I have to generate an xml and its schema depends on the data.&lt;BR /&gt;Has anyone succeeded in doing this? I couldn't do it with the Xml components and I don't know how to do it with the tJava component.&lt;BR /&gt;I don't mind having to develop a custom component but it would be nice to use one of the available components.&lt;BR /&gt;Thanks,&lt;BR /&gt;Tiago</description>
      <pubDate>Wed, 04 Sep 2013 14:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-XML-output-with-dynamic-schema/m-p/2323018#M92912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-04T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] XML output with dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-XML-output-with-dynamic-schema/m-p/2323019#M92913</link>
      <description>Hi 
&lt;BR /&gt;It is impossible to define a element name base on the input data, in Talend, a XML tree is defined at the design time, not the run time. It is easy to generate the XML if you consider the following XML tree:
&lt;BR /&gt;&amp;lt;root&amp;gt;
&lt;BR /&gt;&amp;lt;info&amp;gt;
&lt;BR /&gt;&amp;lt;property_name&amp;gt;weight&amp;lt;/property_name&amp;gt;
&lt;BR /&gt;&amp;lt;property_value&amp;gt;100&amp;lt;/property_value&amp;gt;
&lt;BR /&gt;&amp;lt;/info&amp;gt;
&lt;BR /&gt;&amp;lt;info&amp;gt;
&lt;BR /&gt;&amp;lt;property_name&amp;gt;height&amp;lt;/property_name&amp;gt;
&lt;BR /&gt;&amp;lt;property_value&amp;gt;2&amp;lt;/property_value&amp;gt;
&lt;BR /&gt;&amp;lt;/info&amp;gt;
&lt;BR /&gt;...
&lt;BR /&gt;&amp;lt;/root&amp;gt;
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 04 Sep 2013 14:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-XML-output-with-dynamic-schema/m-p/2323019#M92913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-04T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] XML output with dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-XML-output-with-dynamic-schema/m-p/2323020#M92914</link>
      <description>Thanks for your help, Shong.</description>
      <pubDate>Thu, 05 Sep 2013 10:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-XML-output-with-dynamic-schema/m-p/2323020#M92914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-05T10:36:19Z</dc:date>
    </item>
  </channel>
</rss>

