<?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 Extract Data from XML using tExtractXMLField in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extract-Data-from-XML-using-tExtractXMLField/m-p/2351790#M118372</link>
    <description>I need to Fetch the value of data from XML having multiple same elements :- 
&lt;BR /&gt;&amp;lt;Phones&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Home&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Work&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Pager&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Mobile&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Fax&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;If UseType is Home the the Number in that ContactPhone is Extracted, else if UseType is Work the that Number should be extracted. How can i achive this , also the data is to fetched from API, SO there might be possibility the complete tags /phone number might not appear.</description>
    <pubDate>Fri, 23 May 2014 09:24:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-23T09:24:04Z</dc:date>
    <item>
      <title>Extract Data from XML using tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Data-from-XML-using-tExtractXMLField/m-p/2351790#M118372</link>
      <description>I need to Fetch the value of data from XML having multiple same elements :- 
&lt;BR /&gt;&amp;lt;Phones&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Home&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Work&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Pager&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Mobile&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;ContactPhone&amp;gt; 
&lt;BR /&gt; &amp;lt;number&amp;gt;Example string value.&amp;lt;/number&amp;gt; 
&lt;BR /&gt; &amp;lt;useType readonly="true"&amp;gt;Fax&amp;lt;/useType&amp;gt; 
&lt;BR /&gt; &amp;lt;/ContactPhone&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;If UseType is Home the the Number in that ContactPhone is Extracted, else if UseType is Work the that Number should be extracted. How can i achive this , also the data is to fetched from API, SO there might be possibility the complete tags /phone number might not appear.</description>
      <pubDate>Fri, 23 May 2014 09:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Data-from-XML-using-tExtractXMLField/m-p/2351790#M118372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-23T09:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data from XML using tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Data-from-XML-using-tExtractXMLField/m-p/2351791#M118373</link>
      <description>Hi, &lt;BR /&gt;You can extract all data from XML string with tExtractXMLField, and then filter the rows with tFilterRow or tMap component.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 26 May 2014 03:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Data-from-XML-using-tExtractXMLField/m-p/2351791#M118373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T03:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data from XML using tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-Data-from-XML-using-tExtractXMLField/m-p/2351792#M118374</link>
      <description>hi all,
&lt;BR /&gt;as far as I know, tExtractXMLField use dom4j parser.
&lt;BR /&gt;by that way you're able to use some filter in yout Xpath expression but could become 'touchy'.
&lt;BR /&gt;
&lt;BR /&gt;regards
&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 26 May 2014 16:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-Data-from-XML-using-tExtractXMLField/m-p/2351792#M118374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T16:42:51Z</dc:date>
    </item>
  </channel>
</rss>

