<?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: Dynamic Schemas in tXMLMap component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319457#M89697</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LM02AAG"&gt;@sowjanya&lt;/A&gt;&amp;nbsp; Did you get any solution for this problem? Or still working with N jobs for N Schema?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 08:38:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-17T08:38:02Z</dc:date>
    <item>
      <title>Dynamic Schemas in tXMLMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319454#M89694</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I am using Talend Enterprise edition. I realized that tXMLMap doesn't support dynamic schema. I am trying to see if there is a workaround for that. Here is my use case.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Use case: we pull data for multiple object types from a&amp;nbsp;source system ( using REST) and store the data in csv file format.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Currently we have one talend job per object type, each talend job looks like below.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Repository metadata schema created for the object type from a sample response xml.&lt;/P&gt; 
&lt;P&gt;2. Job flow: &amp;nbsp; tRESTClient pulls the data for a particular object type -&amp;gt; tXMLMap maps response body to the CSV file output.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the tXMLMap configuration UI, we loaded the repository metadata for the object type. and mapped it to output schema manually.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;we have high number of object types that, we want to have one single talend job serving all object types. &amp;nbsp;Few questions on that. &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Is there a way I can&amp;nbsp;access repository metadata during runtime? within tJava component? so that I can parse the schema and&amp;nbsp;map it to the target schema at runtime?&lt;/P&gt; 
&lt;P&gt;2. Does tXMLMap support loading/importing repository metadata for the response body at runtime ?&lt;/P&gt; 
&lt;P&gt;3.&amp;nbsp;do you suggest writing&amp;nbsp;a custom component to do this job? If so, does it require advanced&amp;nbsp;talend knowledge?&lt;/P&gt; 
&lt;P&gt;4.&amp;nbsp;do you know of any other workarounds to achieve this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sowjanya.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 20:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319454#M89694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-07T20:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schemas in tXMLMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319455#M89695</link>
      <description>&lt;P&gt;Answer to your questions:&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;The metadata are actually stored in files. &amp;nbsp;Hence, they can be read. &amp;nbsp;But you can't do much more because you cannot inject XML like hierarchical schema dynamically in a job.&lt;/P&gt;
&lt;P&gt;2) As far as I am aware, tXMLMap does not support loading/importing repository metadata dynamically at runtime&lt;/P&gt;
&lt;P&gt;3) Depends on what you are trying to actually simplify. &amp;nbsp;Making things dynamic just shift complexity to another area for debugging purposes.&lt;/P&gt;
&lt;P&gt;4) It all depends how complex your response body are. &amp;nbsp;Can you share some examples? &amp;nbsp;Are they highly hierarchical? Or just flat?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 21:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319455#M89695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-07T21:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schemas in tXMLMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319456#M89696</link>
      <description>&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Response bodies are pretty flat for all the objects. at max 2 levels.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;we have 150 object types that we are trying to pull.&amp;nbsp;all the jobs pretty much do same thing except that they are dealing with different object types and schemas.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Having one talend job instead of 150 jobs, would greatly reduce the development and maintenance efforts.&lt;/P&gt; 
&lt;P&gt;please suggest if there is any workaround for convering xml to csv using dynamic schemas.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) you mentioned I cannot inject xml hierarchical schema dynamically in a job. I am thinking of mapping&amp;nbsp;the output fields to input Xpath during runtime using java/groovy code components. similar to&amp;nbsp;&lt;A href="https://community.qlik.com/s/article/ka03p0000006EXdAAM" target="_blank"&gt;https://community.talend.com/t5/Troubleshooting-Configuration/Dynamic-Mapping-Getting-Groovy-with-Talend-at-Runtime/ta-p/21491&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;do you still think it is not possible to achieve this?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 00:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319456#M89696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-08T00:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Schemas in tXMLMap component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319457#M89697</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LM02AAG"&gt;@sowjanya&lt;/A&gt;&amp;nbsp; Did you get any solution for this problem? Or still working with N jobs for N Schema?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 08:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Schemas-in-tXMLMap-component/m-p/2319457#M89697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-17T08:38:02Z</dc:date>
    </item>
  </channel>
</rss>

