<?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: XPath in XMLMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XPath-in-XMLMap/m-p/2246572#M32054</link>
    <description>Hi aoh, 
&lt;BR /&gt; Please refer to my attachment solution.png. 
&lt;BR /&gt;First you can use tConvertType component convert you output String type to what you want to (like Integer,Double and so on ). 
&lt;BR /&gt; And then pass the value to another tXMLMap component. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCHr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128062i312E111156990606/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCHr.png" alt="0683p000009MCHr.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Wed, 22 Jan 2014 03:12:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-22T03:12:30Z</dc:date>
    <item>
      <title>XPath in XMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XPath-in-XMLMap/m-p/2246571#M32053</link>
      <description>Hello, 
&lt;BR /&gt;I'm trying to get an XPath-Query working in a XML-Map. But I got some problems with it. 
&lt;BR /&gt;The XML is from a webservice an I need the XML as it is, just with some additional data. It is an invoice with several lines. I need to add the total. 
&lt;BR /&gt;An option would be an tExtractXMLField with tAggregateRow, then put the value on the global map an read the xml-document an the total after FlowToIterate. 
&lt;BR /&gt;Is there an easier option? 
&lt;BR /&gt; 
&lt;BR /&gt;The best solution would be to get the total with an XPath-Query in the XML-Map. 
&lt;BR /&gt; 
&lt;BR /&gt;A simlyfied example is this one: 
&lt;BR /&gt;XML-Structure: 
&lt;BR /&gt;&amp;lt;invoice&amp;gt; 
&lt;BR /&gt; &amp;lt;line&amp;gt; 
&lt;BR /&gt; &amp;lt;nr&amp;gt;1&amp;lt;/nr&amp;gt; 
&lt;BR /&gt; &amp;lt;amount&amp;gt;100&amp;lt;/amount&amp;gt; 
&lt;BR /&gt; &amp;lt;/line&amp;gt; 
&lt;BR /&gt; &amp;lt;line&amp;gt; 
&lt;BR /&gt; &amp;lt;nr&amp;gt;2&amp;lt;/nr&amp;gt; 
&lt;BR /&gt; &amp;lt;amount&amp;gt;100&amp;lt;/amount&amp;gt; 
&lt;BR /&gt; &amp;lt;/line&amp;gt; 
&lt;BR /&gt;&amp;lt;/invoice&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;When I read the XML from a file and put the XPath in tFileInputXML it works. 
&lt;BR /&gt;When I read the XML as a node an put the XPath in an XMLMap (what I want for the webservice) it stops with an error (method not defined). 
&lt;BR /&gt;Is there a way to get XPath working in tXMLMap? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCeE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153693i855B3217BEE2E446/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCeE.png" alt="0683p000009MCeE.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCYm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136882i5585F61400FC6DB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCYm.png" alt="0683p000009MCYm.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCUP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141865iC96F5922CC11C952/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCUP.png" alt="0683p000009MCUP.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCeJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140691iD26D6A54F3AA1150/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCeJ.png" alt="0683p000009MCeJ.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 17 Jan 2014 09:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XPath-in-XMLMap/m-p/2246571#M32053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-17T09:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: XPath in XMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XPath-in-XMLMap/m-p/2246572#M32054</link>
      <description>Hi aoh, 
&lt;BR /&gt; Please refer to my attachment solution.png. 
&lt;BR /&gt;First you can use tConvertType component convert you output String type to what you want to (like Integer,Double and so on ). 
&lt;BR /&gt; And then pass the value to another tXMLMap component. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCHr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128062i312E111156990606/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCHr.png" alt="0683p000009MCHr.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 22 Jan 2014 03:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XPath-in-XMLMap/m-p/2246572#M32054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T03:12:30Z</dc:date>
    </item>
  </channel>
</rss>

