<?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 the complete xpath for XML elements in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372550#M135378</link>
    <description>&lt;P&gt;Hi shong and thanks for the response!&lt;/P&gt;&lt;P&gt;I attach screenshots of two simple Talend jobs. Especially the first one is very simple. I have stored metadata from an XSD file in advance. The same file is then used in this job to extract the values. Of course, there is no values in an XSD file, but that's not important. The question is how to catch the XPaths from the Mapping field in the tFileInputXML component?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The XPaths are there in the system, but I would like to be able to catch them in the next step, in this case a tMap component.&lt;/P&gt;&lt;P&gt;Even if I check for "Get Nodes" and use a tXMLMap component in the next step, I cannot see the way how I could catch these XPaths, together with the values of the XML elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vlatko&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 08:03:52 GMT</pubDate>
    <dc:creator>Vlatko</dc:creator>
    <dc:date>2021-10-25T08:03:52Z</dc:date>
    <item>
      <title>How to extract the complete xpath for XML elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372548#M135376</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I extract XML elements from XML files and write them to a database. I am using tXMLFileInput and tExtractXMLField components.&lt;/P&gt;&lt;P&gt;In both components the XPath query for each element is shown (from XML metadata) in the Mapping field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works well, but I need also the xpath itself in the output. I.e. with each XML element extracted from XML files I also need to store their complete xpath, not only the values of the elements.&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vlatko&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372548#M135376</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2024-11-15T23:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the complete xpath for XML elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372549#M135377</link>
      <description>&lt;P&gt;Hi Vlatko &lt;/P&gt;&lt;P&gt;I don't think the XML components can also extract the xpath. Can you show us an example to explain your requirement? We will see if any other way to extract the xpath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 02:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372549#M135377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T02:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the complete xpath for XML elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372550#M135378</link>
      <description>&lt;P&gt;Hi shong and thanks for the response!&lt;/P&gt;&lt;P&gt;I attach screenshots of two simple Talend jobs. Especially the first one is very simple. I have stored metadata from an XSD file in advance. The same file is then used in this job to extract the values. Of course, there is no values in an XSD file, but that's not important. The question is how to catch the XPaths from the Mapping field in the tFileInputXML component?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The XPaths are there in the system, but I would like to be able to catch them in the next step, in this case a tMap component.&lt;/P&gt;&lt;P&gt;Even if I check for "Get Nodes" and use a tXMLMap component in the next step, I cannot see the way how I could catch these XPaths, together with the values of the XML elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vlatko&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 08:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372550#M135378</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2021-10-25T08:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the complete xpath for XML elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372551#M135379</link>
      <description>&lt;P&gt;And the second screenshot.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 08:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-the-complete-xpath-for-XML-elements/m-p/2372551#M135379</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2021-10-25T08:04:22Z</dc:date>
    </item>
  </channel>
</rss>

