<?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 namespace as website in xpath in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/namespace-as-website-in-xpath/m-p/2333646#M102408</link>
    <description>&lt;P&gt;Hello Talend-Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question to chapter 09 in talend cookbook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a child at xpath using a namespace&amp;nbsp;as a website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;XMLUtils.addChildAtPath(customerXML, "/test:customer", row3.orderXML);&lt;/PRE&gt;&lt;P&gt;This code works fine! The namespace is test and the prefix is tns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;XMLUtils.addChildAtPath(customerXML, "/https://community.talend.com/:customer", row3.orderXML);&lt;/PRE&gt;&lt;P&gt;This code doesn't work. The namespace is&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://community.talend.com/&lt;/PRE&gt;&lt;P&gt;and the prefix is tns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have ideas how to refer to websites (as namespace)&amp;nbsp;in xpath?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talenduser 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. The website&amp;nbsp;is just used as an example.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:15:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T08:15:21Z</dc:date>
    <item>
      <title>namespace as website in xpath</title>
      <link>https://community.qlik.com/t5/Talend-Studio/namespace-as-website-in-xpath/m-p/2333646#M102408</link>
      <description>&lt;P&gt;Hello Talend-Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question to chapter 09 in talend cookbook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a child at xpath using a namespace&amp;nbsp;as a website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;XMLUtils.addChildAtPath(customerXML, "/test:customer", row3.orderXML);&lt;/PRE&gt;&lt;P&gt;This code works fine! The namespace is test and the prefix is tns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;XMLUtils.addChildAtPath(customerXML, "/https://community.talend.com/:customer", row3.orderXML);&lt;/PRE&gt;&lt;P&gt;This code doesn't work. The namespace is&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://community.talend.com/&lt;/PRE&gt;&lt;P&gt;and the prefix is tns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have ideas how to refer to websites (as namespace)&amp;nbsp;in xpath?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talenduser 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. The website&amp;nbsp;is just used as an example.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/namespace-as-website-in-xpath/m-p/2333646#M102408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:15:21Z</dc:date>
    </item>
  </channel>
</rss>

