<?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 Help to to read data from xml file with attribute in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Help-to-to-read-data-from-xml-file-with-attribute/m-p/2310846#M81934</link>
    <description>Hi- Below is the content of my xml file and I have to load it into relational table and should look like below
&lt;BR /&gt;VAR_NAME CATEGORY TABLE NAME COL NAME
&lt;BR /&gt;Trip Frequency Trip TMP_AGG_FIELDS_STORE Trip_Frequency
&lt;BR /&gt;Avg Departments Per Trip Trip TMP_AGG_FIELDS_STORE Avg_Depts_Per_Trip
&lt;BR /&gt;Avg Item Value Item TMP_AGG_FIELDS_STORE Avg_Item_Value
&lt;BR /&gt;
&lt;BR /&gt;XML file: My question how I can get attribute values defined in xml file and use in the job flow.
&lt;BR /&gt;&amp;lt;aggvariablesdefinition&amp;gt;
&lt;BR /&gt;&amp;lt;avtable avtablename="F_AGG_VAR_TRIPS_STORE"&amp;gt;
&lt;BR /&gt;&amp;lt;aggvariables aftablename="TMP_AGG_FIELDS_STORE"&amp;gt;
&lt;BR /&gt;&amp;lt;aggvariable avname="Trip Frequency" category="Trip" columnname="Trip_Frequency"/&amp;gt;
&lt;BR /&gt;&amp;lt;aggvariable avname="Avg Departments Per Trip" category="Trip" columnname="Avg_Depts_Per_Trip"/&amp;gt;
&lt;BR /&gt;&amp;lt;/aggvariables&amp;gt;
&lt;BR /&gt;&amp;lt;insertsql truncate="yes"&amp;gt; Abc&amp;lt;/insertsql&amp;gt;
&lt;BR /&gt;&amp;lt;/avtable&amp;gt;
&lt;BR /&gt;&amp;lt;/aggvariablesdefinition&amp;gt;
&lt;BR /&gt;Thanks,</description>
    <pubDate>Sat, 16 Nov 2024 12:05:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:05:13Z</dc:date>
    <item>
      <title>Help to to read data from xml file with attribute</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-to-to-read-data-from-xml-file-with-attribute/m-p/2310846#M81934</link>
      <description>Hi- Below is the content of my xml file and I have to load it into relational table and should look like below
&lt;BR /&gt;VAR_NAME CATEGORY TABLE NAME COL NAME
&lt;BR /&gt;Trip Frequency Trip TMP_AGG_FIELDS_STORE Trip_Frequency
&lt;BR /&gt;Avg Departments Per Trip Trip TMP_AGG_FIELDS_STORE Avg_Depts_Per_Trip
&lt;BR /&gt;Avg Item Value Item TMP_AGG_FIELDS_STORE Avg_Item_Value
&lt;BR /&gt;
&lt;BR /&gt;XML file: My question how I can get attribute values defined in xml file and use in the job flow.
&lt;BR /&gt;&amp;lt;aggvariablesdefinition&amp;gt;
&lt;BR /&gt;&amp;lt;avtable avtablename="F_AGG_VAR_TRIPS_STORE"&amp;gt;
&lt;BR /&gt;&amp;lt;aggvariables aftablename="TMP_AGG_FIELDS_STORE"&amp;gt;
&lt;BR /&gt;&amp;lt;aggvariable avname="Trip Frequency" category="Trip" columnname="Trip_Frequency"/&amp;gt;
&lt;BR /&gt;&amp;lt;aggvariable avname="Avg Departments Per Trip" category="Trip" columnname="Avg_Depts_Per_Trip"/&amp;gt;
&lt;BR /&gt;&amp;lt;/aggvariables&amp;gt;
&lt;BR /&gt;&amp;lt;insertsql truncate="yes"&amp;gt; Abc&amp;lt;/insertsql&amp;gt;
&lt;BR /&gt;&amp;lt;/avtable&amp;gt;
&lt;BR /&gt;&amp;lt;/aggvariablesdefinition&amp;gt;
&lt;BR /&gt;Thanks,</description>
      <pubDate>Sat, 16 Nov 2024 12:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-to-to-read-data-from-xml-file-with-attribute/m-p/2310846#M81934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help to to read data from xml file with attribute</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-to-to-read-data-from-xml-file-with-attribute/m-p/2310847#M81935</link>
      <description>Hi, 
&lt;BR /&gt;First of all, you should make sure your XML file is well-formed and then you can use talend component 
&lt;A href="https://help.talend.com/search/all?query=tFileInputXML&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tInputXML&lt;/A&gt; to retrieve your attribution into relational table. 
&lt;BR /&gt;Here is the related forums: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCkI5CAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Unable-to-use-tFileInputXML/td-p/73056&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 12 Mar 2013 09:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-to-to-read-data-from-xml-file-with-attribute/m-p/2310847#M81935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-12T09:35:29Z</dc:date>
    </item>
  </channel>
</rss>

