<?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 [resolved] tExtractXMLField help required in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tExtractXMLField-help-required/m-p/2292564#M65627</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Is there any online example which explains how to configure a tExtractXMLField component?&lt;BR /&gt;I am using Talend v6.1 and I have a peculiar problem with this component. I am having a database table (MS SQL) which has a column/field that contains some XML data.&lt;BR /&gt;The data is in the following format:&lt;BR /&gt;&amp;lt;Attributes&amp;gt;&lt;BR /&gt;&amp;lt;Attribute&amp;gt;&lt;BR /&gt;&amp;lt;DisplayOrder&amp;gt;1&amp;lt;/DisplayOrder&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Alias&amp;gt;SSI&amp;lt;/Alias&amp;gt;&lt;BR /&gt;&amp;lt;Length&amp;gt;20&amp;lt;/Length&amp;gt;&lt;BR /&gt;&amp;lt;DefaultValue&amp;gt;2&amp;lt;/DefaultValue&amp;gt;&lt;BR /&gt;&amp;lt;/Attribute&amp;gt;&lt;BR /&gt;&amp;lt;Attribute&amp;gt;&lt;BR /&gt;&amp;lt;DisplayOrder&amp;gt;2&amp;lt;/DisplayOrder&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;PII&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Alias&amp;gt;PII&amp;lt;/Alias&amp;gt;&lt;BR /&gt;&amp;lt;Length&amp;gt;20&amp;lt;/Length&amp;gt;&lt;BR /&gt;&amp;lt;DefaultValue&amp;gt;1979&amp;lt;/DefaultValue&amp;gt;&lt;BR /&gt;&amp;lt;/Attribute&amp;gt;&lt;BR /&gt;&amp;lt;/Attributes&amp;gt;&lt;BR /&gt;&lt;BR /&gt;In the ETL job I am reading this data using a tMSSqlInput component and linking it to a tExtractXMLField component via Main.&lt;BR /&gt;Then I am trying to read the XML fields individually and display the contents of each field using a tLogRow component. My ultimate aim is to insert this read data into another MS SQL database table.&lt;BR /&gt;The job design is as follows&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG1u.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129333i6134653EF3C5F5AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG1u.png" alt="0683p000009MG1u.png" /&gt;&lt;/span&gt;&lt;BR /&gt;As you can see one row is read from the database but 0 rows are passed from the XML component.&lt;BR /&gt;The schema of the tMSSqlInput component has the name of the single field that is selected in the query as shown below&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG0Z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136113i60E8F3EC21C351A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG0Z.png" alt="0683p000009MG0Z.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This same field is mapped against the "XML field" field of the tExtractXMLField component.&lt;BR /&gt;The output schema of tExtractXMLField is defined as follows:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFwC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136430i2229E3C8062EF038/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFwC.png" alt="0683p000009MFwC.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And the "Loop XPath query" is given as "\Attributes\Attribute" and each of the field that needs to be extracted is given as "&amp;lt;FieldName&amp;gt;" against their respective fields defined in the output schema of the tExtractXMLField.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG1z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143373i466EAB344EFB88F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG1z.png" alt="0683p000009MG1z.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me what is the issue with this job?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2016 14:46:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-21T14:46:16Z</dc:date>
    <item>
      <title>[resolved] tExtractXMLField help required</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tExtractXMLField-help-required/m-p/2292564#M65627</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Is there any online example which explains how to configure a tExtractXMLField component?&lt;BR /&gt;I am using Talend v6.1 and I have a peculiar problem with this component. I am having a database table (MS SQL) which has a column/field that contains some XML data.&lt;BR /&gt;The data is in the following format:&lt;BR /&gt;&amp;lt;Attributes&amp;gt;&lt;BR /&gt;&amp;lt;Attribute&amp;gt;&lt;BR /&gt;&amp;lt;DisplayOrder&amp;gt;1&amp;lt;/DisplayOrder&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Alias&amp;gt;SSI&amp;lt;/Alias&amp;gt;&lt;BR /&gt;&amp;lt;Length&amp;gt;20&amp;lt;/Length&amp;gt;&lt;BR /&gt;&amp;lt;DefaultValue&amp;gt;2&amp;lt;/DefaultValue&amp;gt;&lt;BR /&gt;&amp;lt;/Attribute&amp;gt;&lt;BR /&gt;&amp;lt;Attribute&amp;gt;&lt;BR /&gt;&amp;lt;DisplayOrder&amp;gt;2&amp;lt;/DisplayOrder&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;PII&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Alias&amp;gt;PII&amp;lt;/Alias&amp;gt;&lt;BR /&gt;&amp;lt;Length&amp;gt;20&amp;lt;/Length&amp;gt;&lt;BR /&gt;&amp;lt;DefaultValue&amp;gt;1979&amp;lt;/DefaultValue&amp;gt;&lt;BR /&gt;&amp;lt;/Attribute&amp;gt;&lt;BR /&gt;&amp;lt;/Attributes&amp;gt;&lt;BR /&gt;&lt;BR /&gt;In the ETL job I am reading this data using a tMSSqlInput component and linking it to a tExtractXMLField component via Main.&lt;BR /&gt;Then I am trying to read the XML fields individually and display the contents of each field using a tLogRow component. My ultimate aim is to insert this read data into another MS SQL database table.&lt;BR /&gt;The job design is as follows&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG1u.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129333i6134653EF3C5F5AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG1u.png" alt="0683p000009MG1u.png" /&gt;&lt;/span&gt;&lt;BR /&gt;As you can see one row is read from the database but 0 rows are passed from the XML component.&lt;BR /&gt;The schema of the tMSSqlInput component has the name of the single field that is selected in the query as shown below&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG0Z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136113i60E8F3EC21C351A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG0Z.png" alt="0683p000009MG0Z.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This same field is mapped against the "XML field" field of the tExtractXMLField component.&lt;BR /&gt;The output schema of tExtractXMLField is defined as follows:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFwC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136430i2229E3C8062EF038/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFwC.png" alt="0683p000009MFwC.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And the "Loop XPath query" is given as "\Attributes\Attribute" and each of the field that needs to be extracted is given as "&amp;lt;FieldName&amp;gt;" against their respective fields defined in the output schema of the tExtractXMLField.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG1z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143373i466EAB344EFB88F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG1z.png" alt="0683p000009MG1z.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me what is the issue with this job?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 14:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tExtractXMLField-help-required/m-p/2292564#M65627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tExtractXMLField help required</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tExtractXMLField-help-required/m-p/2292565#M65628</link>
      <description>what we can see - path == "\Attributes\Attrib" but not "\Attributes\Attribute"&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;but most important it must be - "//Attributes/Attribute" 
&lt;BR /&gt; 
&lt;BR /&gt;little more about Path -&amp;nbsp; 
&lt;A href="http://www.jasonstrate.com/2010/11/xquery-for-the-non-expert-exist/" rel="nofollow noopener noreferrer"&gt;http://www.jasonstrate.com/2010/11/xquery-for-the-non-expert-exist/&lt;/A&gt; or&amp;nbsp; 
&lt;A href="http://goessner.net/articles/JsonPath/" rel="nofollow noopener noreferrer"&gt;http://goessner.net/articles/JsonPath/&lt;/A&gt; 
&lt;BR /&gt;last about JSONPath but compare with Path</description>
      <pubDate>Mon, 21 Nov 2016 20:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tExtractXMLField-help-required/m-p/2292565#M65628</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-21T20:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tExtractXMLField help required</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tExtractXMLField-help-required/m-p/2292566#M65629</link>
      <description>Thank you vapukov, that helped me a lot!</description>
      <pubDate>Tue, 22 Nov 2016 06:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tExtractXMLField-help-required/m-p/2292566#M65629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T06:19:38Z</dc:date>
    </item>
  </channel>
</rss>

