<?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>article cSplitter with XPath is not working/splitting as expected in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/cSplitter-with-XPath-is-not-working-splitting-as-expected/ta-p/2150799</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt; 
 &lt;H1&gt;Problem Description&lt;/H1&gt; 
 &lt;P&gt;cSplitter with XPath language is not splitting as expected when consuming the correct XML input with the correct XPath expression.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;In this case, the input XML looks like this:&lt;/P&gt; 
 &lt;PRE&gt;&amp;lt;elmt1 xmlns="http://xyz.company.com"&amp;gt;
  &amp;lt;msg&amp;gt;
    ....
  &amp;lt;/msg&amp;gt;
  &amp;lt;msg&amp;gt;
    ....
  &amp;lt;/msg&amp;gt;
  ...
&amp;lt;/elmt1&amp;gt;&lt;/PRE&gt; 
 &lt;P&gt;The XPath expression is:&lt;/P&gt; 
 &lt;PRE&gt;/elmt1/msg&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H1&gt;Root Cause&lt;/H1&gt; 
 &lt;P&gt;The input XML has namespace definitions.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H1&gt;Solution&lt;/H1&gt; 
 &lt;P&gt;Configure the cSplitter to &lt;STRONG&gt;Add Namespaces&lt;/STRONG&gt; declarations by performing the following steps:&lt;/P&gt; 
 &lt;OL&gt;&lt;LI&gt; &lt;P&gt;Select the &lt;STRONG&gt;Add Namespaces&lt;/STRONG&gt; check box.&lt;/P&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;Click the plus (&lt;STRONG&gt;+&lt;/STRONG&gt;) sign to add &lt;STRONG&gt;Namespaces&lt;/STRONG&gt;.&lt;/P&gt; 
   &lt;OL&gt;&lt;LI&gt; &lt;P&gt;Enter the name of your namespace in the &lt;STRONG&gt;Prefix&lt;/STRONG&gt; column, (you can choose any name, it doesn't have to match the one in the input XML), for example, &lt;STRONG&gt;"v"&lt;/STRONG&gt;.&lt;/P&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;Enter the URL for your namespace in the &lt;STRONG&gt;URL&lt;/STRONG&gt; column, for example, &lt;STRONG&gt;"&lt;A href="http://xyz.company.com" target="_blank"&gt;http://xyz.company.com&lt;/A&gt;"&lt;/STRONG&gt;.&lt;/P&gt; &lt;/LI&gt;&lt;/OL&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;Then change the XPath &lt;STRONG&gt;Expression&lt;/STRONG&gt; to include the namespace &lt;STRONG&gt;Prefix&lt;/STRONG&gt; you added above. In this example, the expression becomes, "&lt;STRONG&gt;/v:elmt1/v:msg"&lt;/STRONG&gt;.&lt;/P&gt; &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 542px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008uG37AAE.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/121431iB4EA74F119FA3DDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008uG37AAE.jpg" alt="0693p000008uG37AAE.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;/LI&gt;&lt;/OL&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2024-02-09T18:22:49Z</dc:date>
    <item>
      <title>cSplitter with XPath is not working/splitting as expected</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/cSplitter-with-XPath-is-not-working-splitting-as-expected/ta-p/2150799</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt; 
 &lt;H1&gt;Problem Description&lt;/H1&gt; 
 &lt;P&gt;cSplitter with XPath language is not splitting as expected when consuming the correct XML input with the correct XPath expression.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;In this case, the input XML looks like this:&lt;/P&gt; 
 &lt;PRE&gt;&amp;lt;elmt1 xmlns="http://xyz.company.com"&amp;gt;
  &amp;lt;msg&amp;gt;
    ....
  &amp;lt;/msg&amp;gt;
  &amp;lt;msg&amp;gt;
    ....
  &amp;lt;/msg&amp;gt;
  ...
&amp;lt;/elmt1&amp;gt;&lt;/PRE&gt; 
 &lt;P&gt;The XPath expression is:&lt;/P&gt; 
 &lt;PRE&gt;/elmt1/msg&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H1&gt;Root Cause&lt;/H1&gt; 
 &lt;P&gt;The input XML has namespace definitions.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H1&gt;Solution&lt;/H1&gt; 
 &lt;P&gt;Configure the cSplitter to &lt;STRONG&gt;Add Namespaces&lt;/STRONG&gt; declarations by performing the following steps:&lt;/P&gt; 
 &lt;OL&gt;&lt;LI&gt; &lt;P&gt;Select the &lt;STRONG&gt;Add Namespaces&lt;/STRONG&gt; check box.&lt;/P&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;Click the plus (&lt;STRONG&gt;+&lt;/STRONG&gt;) sign to add &lt;STRONG&gt;Namespaces&lt;/STRONG&gt;.&lt;/P&gt; 
   &lt;OL&gt;&lt;LI&gt; &lt;P&gt;Enter the name of your namespace in the &lt;STRONG&gt;Prefix&lt;/STRONG&gt; column, (you can choose any name, it doesn't have to match the one in the input XML), for example, &lt;STRONG&gt;"v"&lt;/STRONG&gt;.&lt;/P&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;Enter the URL for your namespace in the &lt;STRONG&gt;URL&lt;/STRONG&gt; column, for example, &lt;STRONG&gt;"&lt;A href="http://xyz.company.com" target="_blank"&gt;http://xyz.company.com&lt;/A&gt;"&lt;/STRONG&gt;.&lt;/P&gt; &lt;/LI&gt;&lt;/OL&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;Then change the XPath &lt;STRONG&gt;Expression&lt;/STRONG&gt; to include the namespace &lt;STRONG&gt;Prefix&lt;/STRONG&gt; you added above. In this example, the expression becomes, "&lt;STRONG&gt;/v:elmt1/v:msg"&lt;/STRONG&gt;.&lt;/P&gt; &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 542px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008uG37AAE.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/121431iB4EA74F119FA3DDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008uG37AAE.jpg" alt="0693p000008uG37AAE.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;/LI&gt;&lt;/OL&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/cSplitter-with-XPath-is-not-working-splitting-as-expected/ta-p/2150799</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2024-02-09T18:22:49Z</dc:date>
    </item>
  </channel>
</rss>

