<?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 How to use cSplitter to split a string with XML tags in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-cSplitter-to-split-a-string-with-XML-tags/m-p/2291331#M64521</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I have a route that dequeues a message from ActiveMQ. After dequeueing the message (String with XML tags), I would like to split the message and store values from certain tags in context variables but I am finding it difficult to use cSplitter to achieve what I want and the only Talend cSplitter example online didn't help much. Please see my cSplitter setup and a smaller version of the string I would like to split.&lt;BR /&gt;My string:&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&amp;lt;AuditKey&amp;gt;42&amp;lt;/AuditKey&amp;gt;&amp;lt;Submission&amp;gt;&amp;lt;CRMId&amp;gt;{00080000-0000-0000-0000-000000000000}&amp;lt;/CRMId&amp;gt;&amp;lt;Owner&amp;gt;String&amp;lt;/Owner&amp;gt;&amp;lt;Client&amp;gt;String&amp;lt;/Client&amp;gt;&amp;lt;Price&amp;gt;&amp;lt;TDM&amp;gt;Aviation&amp;lt;/TDM&amp;gt;&amp;lt;Product&amp;gt;Screw&amp;lt;/Product&amp;gt;&amp;lt;/Price&amp;gt;&amp;lt;/Submission&amp;gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBIJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135284iA34AA0857BFE7514/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBIJ.png" alt="0683p000009MBIJ.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 11:27:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:27:08Z</dc:date>
    <item>
      <title>How to use cSplitter to split a string with XML tags</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-cSplitter-to-split-a-string-with-XML-tags/m-p/2291331#M64521</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have a route that dequeues a message from ActiveMQ. After dequeueing the message (String with XML tags), I would like to split the message and store values from certain tags in context variables but I am finding it difficult to use cSplitter to achieve what I want and the only Talend cSplitter example online didn't help much. Please see my cSplitter setup and a smaller version of the string I would like to split.&lt;BR /&gt;My string:&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&amp;lt;AuditKey&amp;gt;42&amp;lt;/AuditKey&amp;gt;&amp;lt;Submission&amp;gt;&amp;lt;CRMId&amp;gt;{00080000-0000-0000-0000-000000000000}&amp;lt;/CRMId&amp;gt;&amp;lt;Owner&amp;gt;String&amp;lt;/Owner&amp;gt;&amp;lt;Client&amp;gt;String&amp;lt;/Client&amp;gt;&amp;lt;Price&amp;gt;&amp;lt;TDM&amp;gt;Aviation&amp;lt;/TDM&amp;gt;&amp;lt;Product&amp;gt;Screw&amp;lt;/Product&amp;gt;&amp;lt;/Price&amp;gt;&amp;lt;/Submission&amp;gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBIJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135284iA34AA0857BFE7514/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBIJ.png" alt="0683p000009MBIJ.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-cSplitter-to-split-a-string-with-XML-tags/m-p/2291331#M64521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use cSplitter to split a string with XML tags</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-cSplitter-to-split-a-string-with-XML-tags/m-p/2291332#M64522</link>
      <description>SHUJLTESB&lt;BR /&gt;A splitter is not made to do what you want , it's doesn't extract values but splits xml message who contain multiple instances of object (xml tag). For example:&lt;BR /&gt;&amp;lt;items&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;/items&amp;gt;&lt;BR /&gt;In this example you will split each /items/item (using xpath). But you don't extract any value.&lt;BR /&gt;Ref: &lt;A href="http://camel.apache.org/splitter.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/splitter.html&lt;/A&gt;&lt;BR /&gt;What do you mean by splitting the message?&lt;BR /&gt;Btw, you should use Headers instead of context variables.</description>
      <pubDate>Wed, 29 Oct 2014 09:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-cSplitter-to-split-a-string-with-XML-tags/m-p/2291332#M64522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T09:19:59Z</dc:date>
    </item>
  </channel>
</rss>

