<?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: XML file fetch from http request and parse create new xml and post it in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242337#M29202</link>
    <description>Thank u . i got nodes.</description>
    <pubDate>Mon, 18 Jun 2012 13:42:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-18T13:42:36Z</dc:date>
    <item>
      <title>XML file fetch from http request and parse create new xml and post it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242332#M29197</link>
      <description>Hai,
&lt;BR /&gt;I want to do below task using Talend. 
&lt;BR /&gt;Fetch XML files from HTTPRequest and parse it,then create new XML's using fetched XML's and post new XML's to another HTTP request.
&lt;BR /&gt;I am getting below XML from HTTP request
&lt;BR /&gt;
&lt;PRE&gt;&amp;lt;Response&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;Count&amp;gt;1756765&amp;lt;/Count&amp;gt;&amp;lt;/Header&amp;gt;&amp;lt;Body&amp;gt;                                    &lt;BR /&gt;&amp;lt;Article&amp;gt;&lt;BR /&gt;  &amp;lt;Id&amp;gt;mggtph12345&amp;lt;/Id&amp;gt; &lt;BR /&gt;  &amp;lt;Categories&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;   &lt;BR /&gt;  &amp;lt;/Categories&amp;gt; &lt;BR /&gt;  &amp;lt;EntityType&amp;gt;ARTICLE&amp;lt;/EntityType&amp;gt;  &lt;BR /&gt;&amp;lt;/Article&amp;gt;                                    &lt;BR /&gt;&amp;lt;Article&amp;gt;&lt;BR /&gt;  &amp;lt;Id&amp;gt;abdfghtjiaa&amp;lt;/Id&amp;gt;&lt;BR /&gt;  &amp;lt;Categories&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;   &lt;BR /&gt;  &amp;lt;/Categories&amp;gt; &lt;BR /&gt;  &amp;lt;EntityType&amp;gt;ARTICLE&amp;lt;/EntityType&amp;gt;&lt;BR /&gt;&amp;lt;/Article&amp;gt;&lt;BR /&gt;&amp;lt;/Body&amp;gt;&amp;lt;/Response&amp;gt;&lt;/PRE&gt;
&lt;BR /&gt;My output XML will be parse Article tag contents as sepearate XML with RootTag Collections
&lt;BR /&gt;Output XML
&lt;BR /&gt;
&lt;PRE&gt;Filename:mggtph12345.xml&lt;BR /&gt;&amp;lt;Collections&amp;gt;&lt;BR /&gt;&amp;lt;Article&amp;gt;&lt;BR /&gt;  &amp;lt;Id&amp;gt;mggtph12345&amp;lt;/Id&amp;gt; &lt;BR /&gt;  &amp;lt;Categories&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;   &lt;BR /&gt;  &amp;lt;/Categories&amp;gt; &lt;BR /&gt;  &amp;lt;EntityType&amp;gt;ARTICLE&amp;lt;/EntityType&amp;gt;  &lt;BR /&gt;&amp;lt;/Article&amp;gt;&lt;BR /&gt;&amp;lt;/Collections&amp;gt;&lt;BR /&gt;Filename:abdfghtjiaa.xml&lt;BR /&gt;&amp;lt;Collections&amp;gt;&lt;BR /&gt;&amp;lt;Article&amp;gt;&lt;BR /&gt;  &amp;lt;Id&amp;gt;abdfghtjiaa&amp;lt;/Id&amp;gt; &lt;BR /&gt;  &amp;lt;Categories&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;   &lt;BR /&gt;  &amp;lt;/Categories&amp;gt; &lt;BR /&gt;  &amp;lt;EntityType&amp;gt;ARTICLE&amp;lt;/EntityType&amp;gt;  &lt;BR /&gt;&amp;lt;/Article&amp;gt;&lt;BR /&gt;&amp;lt;/Collections&amp;gt;&lt;/PRE&gt;
&lt;BR /&gt;I need to post this each output XML into another HTTP request.
&lt;BR /&gt;Please provide your help to complete this task.</description>
      <pubDate>Thu, 07 Jun 2012 08:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242332#M29197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-07T08:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: XML file fetch from http request and parse create new xml and post it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242333#M29198</link>
      <description>Hi, 
&lt;BR /&gt;I think you could use a tFLowToIterate component after fetching the xml from the source. This way you can have an iteration per row, these rows can than have their own xml file. 
&lt;BR /&gt;The tJavaFlex is used to put the data back in a row again. 
&lt;BR /&gt;See the attached screenshot for more info. 
&lt;BR /&gt;Hope this helps. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Arno</description>
      <pubDate>Thu, 07 Jun 2012 09:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242333#M29198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-07T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: XML file fetch from http request and parse create new xml and post it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242334#M29199</link>
      <description>Hai,&lt;BR /&gt;Thanks for ur reply.&lt;BR /&gt;I am so new to Talend. i tried with your design but unable to success ,  i don't know how to configure settings for component. i attached my screens for reference.  can u  guide me to set correct settings for my xml OR  show me your settings screens.&lt;BR /&gt;&lt;PRE&gt; sample_article.xml&lt;BR /&gt;&amp;lt;Response&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;Count&amp;gt;1756765&amp;lt;/Count&amp;gt;&amp;lt;/Header&amp;gt;&amp;lt;Body&amp;gt;                                    &lt;BR /&gt;&amp;lt;Article&amp;gt;&lt;BR /&gt;  &amp;lt;Id&amp;gt;mggtph12345&amp;lt;/Id&amp;gt; &lt;BR /&gt;  &amp;lt;Categories&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;   &lt;BR /&gt;  &amp;lt;/Categories&amp;gt; &lt;BR /&gt;  &amp;lt;EntityType&amp;gt;ARTICLE&amp;lt;/EntityType&amp;gt;  &lt;BR /&gt;&amp;lt;/Article&amp;gt;                                    &lt;BR /&gt;&amp;lt;Article&amp;gt;&lt;BR /&gt;  &amp;lt;Id&amp;gt;abdfghtjiaa&amp;lt;/Id&amp;gt;&lt;BR /&gt;  &amp;lt;Categories&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;   &lt;BR /&gt;  &amp;lt;/Categories&amp;gt; &lt;BR /&gt;  &amp;lt;EntityType&amp;gt;ARTICLE&amp;lt;/EntityType&amp;gt;&lt;BR /&gt;&amp;lt;/Article&amp;gt;&lt;BR /&gt;&amp;lt;/Body&amp;gt;&amp;lt;/Response&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jun 2012 11:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242334#M29199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-07T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: XML file fetch from http request and parse create new xml and post it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242335#M29200</link>
      <description>Hai,&lt;BR /&gt;I am using below XPath Queries to parse XML.&lt;BR /&gt;LoopXPathQuery:"/Response/Body"&lt;BR /&gt;Column   XpathQuery&lt;BR /&gt;Article  "."&lt;BR /&gt;Id       "Article/Id"&lt;BR /&gt;But using this i am getting only values in Article Column. tags are missing.&lt;BR /&gt;Output:&lt;BR /&gt;mggtph12345   &lt;BR /&gt;    Others&lt;BR /&gt;    News      &lt;BR /&gt;  ARTICLE  &lt;BR /&gt;  &lt;BR /&gt;But how can i get with tags.&lt;BR /&gt;Need output like:&lt;BR /&gt; &amp;lt;Id&amp;gt;mggtph12345&amp;lt;/Id&amp;gt; &lt;BR /&gt;  &amp;lt;Categories&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;&lt;BR /&gt;    &amp;lt;Category&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Category&amp;gt;   &lt;BR /&gt;  &amp;lt;/Categories&amp;gt; &lt;BR /&gt;  &amp;lt;EntityType&amp;gt;ARTICLE&amp;lt;/EntityType&amp;gt;</description>
      <pubDate>Thu, 07 Jun 2012 15:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242335#M29200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-07T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: XML file fetch from http request and parse create new xml and post it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242336#M29201</link>
      <description>Hi,
&lt;BR /&gt;You can get it with tags if you check "Get Node" on the richt of your xpath expression.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Arno</description>
      <pubDate>Thu, 07 Jun 2012 15:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242336#M29201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-07T15:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: XML file fetch from http request and parse create new xml and post it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242337#M29202</link>
      <description>Thank u . i got nodes.</description>
      <pubDate>Mon, 18 Jun 2012 13:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-file-fetch-from-http-request-and-parse-create-new-xml-and/m-p/2242337#M29202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-18T13:42:36Z</dc:date>
    </item>
  </channel>
</rss>

