<?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 How to xpath on xml from query? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320165#M90337</link>
    <description>&lt;P&gt;My scenario is this:&lt;/P&gt;
&lt;P&gt;I have an sql query that extract a field that contains an xml.&lt;/P&gt;
&lt;P&gt;I need to extract a specific value from this xml.&lt;/P&gt;
&lt;P&gt;now the question is, how do I do this in talend?&lt;/P&gt;
&lt;P&gt;I have tried using tJava, however the parse expects a URI and not a parameter from talend...&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 15:34:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-27T15:34:21Z</dc:date>
    <item>
      <title>How to xpath on xml from query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320165#M90337</link>
      <description>&lt;P&gt;My scenario is this:&lt;/P&gt;
&lt;P&gt;I have an sql query that extract a field that contains an xml.&lt;/P&gt;
&lt;P&gt;I need to extract a specific value from this xml.&lt;/P&gt;
&lt;P&gt;now the question is, how do I do this in talend?&lt;/P&gt;
&lt;P&gt;I have tried using tJava, however the parse expects a URI and not a parameter from talend...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 15:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320165#M90337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-27T15:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to xpath on xml from query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320166#M90338</link>
      <description>&lt;P&gt;You have tXmlMap, tExtractXmlField to parse XML in Talend.&lt;/P&gt;
&lt;P&gt;But, if you are using Sql Server (you mentioned - "&lt;SPAN&gt;I have an sql query"&lt;/SPAN&gt;) you will be able to perform xml parsing in database itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you show your xml content and what exactly you are trying to achieve will help.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 08:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320166#M90338</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-06-28T08:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to xpath on xml from query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320167#M90339</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 453px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyJl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148674iFE9065EBF916B919/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyJl.png" alt="0683p000009LyJl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;this is my current job.&lt;/P&gt; 
&lt;P&gt;in tmap I have 20 fields. one of those fields contains an xml file.&lt;/P&gt; 
&lt;P&gt;I need to execute an xpath query on it to extract a specific tag.&lt;/P&gt; 
&lt;P&gt;question is, how do I execute xpath on a field coming from tmap? I tried using java code, but so far have been unsuccessful&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 09:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320167#M90339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-28T09:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to xpath on xml from query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320168#M90340</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOWrAAO"&gt;@KV&lt;/A&gt;&amp;nbsp;- are you sure one of such field in your tMap is a XML file and not some XML data.&lt;BR /&gt;If it's XML data then I would recommend you to pass it through tXMLMap like this -&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tXMLMap-1.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxD1.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132010i476F20FA86648C3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxD1.jpg" alt="0683p000009LxD1.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;Once the data is extracted then you could join it to tMap and perform your rest operation.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320168#M90340</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-06-28T13:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to xpath on xml from query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320169#M90341</link>
      <description>&lt;P&gt;One more way would be to use tExtractXmlField. Sample job layout defined -&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractXmlField-1.JPG" style="width: 844px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lypj.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154180i52F0D4C8E92DBA03/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lypj.jpg" alt="0683p000009Lypj.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;So, here mention the XML field and use XPath query to&amp;nbsp;&lt;SPAN&gt;extract a specific tag and when done pass on the entire information to your tMap or other relevant components.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-xpath-on-xml-from-query/m-p/2320169#M90341</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-06-28T15:11:05Z</dc:date>
    </item>
  </channel>
</rss>

