<?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: Reading XML message from Queue in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310271#M81413</link>
    <description>&lt;P&gt;Use a tExtractXMLField component to pass the whole document through (using the "." XPath) and retrieve the common field. In the next component (maybe a tMap) use the common field to identify the type and pass the whole document to an output that will lead to a part of the job that will process that XML schema.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|-------Type2&lt;/P&gt;
&lt;P&gt;Message Queue ---&amp;gt; tExtractXMLField---&amp;gt; tMap ----Type1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |--------Type3&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 22:27:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-22T22:27:29Z</dc:date>
    <item>
      <title>Reading XML message from Queue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310270#M81412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am reading XML messages located in a Queue with Talend.&amp;nbsp;Schema of a message might change from another.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can i know which XML component should use to pick a filed on the incoming XML messages. (Assume there is one field that is common for all schemas)&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 22:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310270#M81412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T22:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading XML message from Queue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310271#M81413</link>
      <description>&lt;P&gt;Use a tExtractXMLField component to pass the whole document through (using the "." XPath) and retrieve the common field. In the next component (maybe a tMap) use the common field to identify the type and pass the whole document to an output that will lead to a part of the job that will process that XML schema.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|-------Type2&lt;/P&gt;
&lt;P&gt;Message Queue ---&amp;gt; tExtractXMLField---&amp;gt; tMap ----Type1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |--------Type3&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 22:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310271#M81413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T22:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading XML message from Queue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310272#M81414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Sample XML is:&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;note&amp;gt;&lt;BR /&gt;&amp;lt;to&amp;gt;Tove&amp;lt;/to&amp;gt;&lt;BR /&gt;&amp;lt;from&amp;gt;Jani&amp;lt;/from&amp;gt;&lt;BR /&gt;&amp;lt;heading&amp;gt;Reminder&amp;lt;/heading&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;Don't forget me this weekend!&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/note&amp;gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="talend.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyAV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128742iB25A01766C9BDE9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyAV.jpg" alt="0683p000009LyAV.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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;with this setup tlogrow is not printing anything. It should print the whole xml right?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Actually, my workflow is reading messages and i can print it in tJavaflex.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please correct me if i am doing anything wrong.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lt5T"&gt;talend.JPG&lt;/A&gt;</description>
      <pubDate>Fri, 22 Jun 2018 23:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310272#M81414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T23:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reading XML message from Queue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310273#M81415</link>
      <description>&lt;P&gt;I'm assuming you are getting the message in the tJavaFlex, correct? Is this returning as an XML or a String? When you run it, is a record being passed to the tExtractXMLField component? You should be able to see by the row count leading to the tExtractXMLField. Could you show your tJavaFlex code? Alternatively, could you connect your tLogRow to your tJavaFlex to see if the XML is printed to the output through the tLogRow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it is a bit tricky to work out what might be going wrong here as you appear to be doing a lot in Java ....which isn't necessarily bad, although you should probably think about making use of the included components to retrieve messages from message queues if you can.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tExractXMLField component looks OK, but I can't see if you have ticked the Get Node box. You need that to return an XML document. Also, do you have Ignore Namespaces ticked (in the Advanced Settings of the tExtractXMLField component)? That is always useful to switch on when testing to save XPath issues....although your Xpaths are not complicated.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 23:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-XML-message-from-Queue/m-p/2310273#M81415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T23:41:50Z</dc:date>
    </item>
  </channel>
</rss>

