<?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: How to extract string between tags from an XML file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373357#M136090</link>
    <description>Hi shong,
&lt;BR /&gt;I want to remind you, when you can, to read my email.
&lt;BR /&gt;Thanks for your interest.
&lt;BR /&gt;Nic</description>
    <pubDate>Tue, 15 Oct 2013 11:34:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-15T11:34:09Z</dc:date>
    <item>
      <title>How to extract string between tags from an XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373351#M136084</link>
      <description>Hi all,&lt;BR /&gt;I am trying to extract text between two tags of an xml file, but with negative results.&lt;BR /&gt;This is the xml structure and I need to extract the contents of the body,  for some post processing.&lt;BR /&gt;&lt;PRE&gt;&amp;lt;soap:Envelope&amp;gt;&lt;BR /&gt;	&amp;lt;soap:Header&amp;gt;&lt;BR /&gt;	...&lt;BR /&gt;	&amp;lt;/soap:Header&amp;gt;&lt;BR /&gt;	&amp;lt;soap:Body&amp;gt;&lt;BR /&gt;		&amp;lt;ns1:Response&amp;gt;&lt;BR /&gt;			&amp;lt;Object id="id:1234567890"&amp;gt;&lt;BR /&gt;				....&lt;BR /&gt;			&amp;lt;/Object&amp;gt;&lt;BR /&gt;		&amp;lt;/ns1:Response&amp;gt;&lt;BR /&gt;	&amp;lt;/soap:Body&amp;gt;&lt;BR /&gt;	&amp;lt;/soap:Header&amp;gt;&lt;BR /&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;I'm using the command tExtractXMLField, and these component properties:&lt;BR /&gt;- Property Type: Built-In&lt;BR /&gt;- Schema Type: Built-In&lt;BR /&gt;- XML field: Body&lt;BR /&gt;- Loop XPath query: "/Envelope/Body/*"&lt;BR /&gt;- Mapping:    Column       XPath query&lt;BR /&gt;                   Body           "Body"&lt;BR /&gt;- Schema:    Column        Type    ...&lt;BR /&gt;                   Body            String   ...&lt;BR /&gt;What's wrong? Probably wrong with the "Loop XPath query"?&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Nic</description>
      <pubDate>Wed, 25 Sep 2013 21:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373351#M136084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-25T21:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract string between tags from an XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373352#M136085</link>
      <description>Hi 
&lt;BR /&gt;As a newbie, I would suggest you to use metadata manager to create a XML metadata follows the wizards, refer to 
&lt;A href="https://help.talend.com/search/all?query=Setting+up+an+XML+schema+for+an+input+file&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;Setting up an XML schema for an input file&lt;/A&gt;.
&lt;BR /&gt;Here the Loop Xpath query should be:
&lt;BR /&gt;"/soap:Envelope/soap:Body"
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 26 Sep 2013 03:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373352#M136085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-26T03:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract string between tags from an XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373353#M136086</link>
      <description>Hi Shong,
&lt;BR /&gt;first of all thanks for your response. The script xml I posted, is a soap response.
&lt;BR /&gt;
&lt;PRE&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;&lt;BR /&gt;   &amp;lt;soapenv:Header&amp;gt;&lt;BR /&gt;      &amp;lt;capabilities xmlns=........&amp;lt;/capabilities&amp;gt;&lt;BR /&gt;   &amp;lt;/soapenv:Header&amp;gt;&lt;BR /&gt;   &amp;lt;soapenv:Body&amp;gt;&lt;BR /&gt;		&amp;lt;ibisag:queryRegObjResponse xsi:schemaLocation=.........&amp;gt;&lt;BR /&gt;			&amp;lt;regObj id="id:obj:a1b2c3d4" objType="type:obj:abc0000"&amp;gt;&lt;BR /&gt;				&amp;lt;rim:Slot name="Author" xmlns:rim=.......&amp;gt;&lt;BR /&gt;					&amp;lt;rim:ValueList&amp;gt;&lt;BR /&gt;						&amp;lt;rim:Value&amp;gt;MyName&amp;lt;/rim:Value&amp;gt;&lt;BR /&gt;					&amp;lt;/rim:ValueList&amp;gt;&lt;BR /&gt;				&amp;lt;/rim:Slot&amp;gt;&lt;BR /&gt;				...&lt;BR /&gt;				...&lt;BR /&gt;				&amp;lt;rim:Slot name="email" xmlns:rim=".......&amp;gt;&lt;BR /&gt;					&amp;lt;rim:ValueList&amp;gt;&lt;BR /&gt;						&amp;lt;rim:Value&amp;gt;a@b.com&amp;lt;/rim:Value&amp;gt;&lt;BR /&gt;					&amp;lt;/rim:ValueList&amp;gt;&lt;BR /&gt;				&amp;lt;/rim:Slot&amp;gt;&lt;BR /&gt;			&amp;lt;/registryObject&amp;gt;&lt;BR /&gt;		&amp;lt;/ibisag:queryRegistryRegObjResponse&amp;gt;&lt;BR /&gt;	&amp;lt;/soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/PRE&gt;
&lt;BR /&gt;My goal is to extract the contents of the tag email ... I did some testing with an xml file with "simple" tag (without namespace, etc.) and it works, unfortunately I can not with this structure .. would you help me please?
&lt;BR /&gt;thank you so much
&lt;BR /&gt;Nic</description>
      <pubDate>Thu, 26 Sep 2013 18:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373353#M136086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-26T18:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract string between tags from an XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373354#M136087</link>
      <description>Hi 
&lt;BR /&gt;You can extract the value of a element or an attribute, for example, you can extract the value 
&lt;BR /&gt;MyName
&lt;BR /&gt;a@b.com 
&lt;BR /&gt;from the element rim:Value, rather than the whole content under the element &amp;lt;soapenv:Body&amp;gt;.
&lt;BR /&gt;Can you please email me an exmaple of your soap response and let me know what data would you like to extract?
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 27 Sep 2013 04:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373354#M136087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-27T04:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract string between tags from an XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373355#M136088</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi &lt;BR /&gt;You can extract the value of a element or an attribute, for example, you can extract the value &lt;BR /&gt;MyName&lt;BR /&gt;a@b.com &lt;BR /&gt;from the element rim:Value, rather than the whole content under the element &amp;lt;soapenv:Body&amp;gt;.&lt;BR /&gt;Can you please email me an exmaple of your soap response and let me know what data would you like to extract?&lt;BR /&gt;Shong&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Email sent...
&lt;BR /&gt;thanks</description>
      <pubDate>Fri, 27 Sep 2013 13:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373355#M136088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-27T13:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract string between tags from an XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373356#M136089</link>
      <description>Hi Shong,
&lt;BR /&gt;did you get my email?</description>
      <pubDate>Mon, 30 Sep 2013 09:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373356#M136089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-30T09:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract string between tags from an XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373357#M136090</link>
      <description>Hi shong,
&lt;BR /&gt;I want to remind you, when you can, to read my email.
&lt;BR /&gt;Thanks for your interest.
&lt;BR /&gt;Nic</description>
      <pubDate>Tue, 15 Oct 2013 11:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-string-between-tags-from-an-XML-file/m-p/2373357#M136090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T11:34:09Z</dc:date>
    </item>
  </channel>
</rss>

