<?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 parsing and XML creation with Xpath queries problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274041#M50841</link>
    <description>Hai,&lt;BR /&gt;I am trying to Split and merge XML using MSXML.  but unable to merge.  any one and tell me my job design will work .  &lt;BR /&gt;job design image attached for reference</description>
    <pubDate>Wed, 20 Jun 2012 08:02:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-20T08:02:32Z</dc:date>
    <item>
      <title>XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274034#M50834</link>
      <description>Hai,&lt;BR /&gt;i want to read values from input XML and needs to create output XML. i am facing some problems . i put my queries below if any one know please answer me.&lt;BR /&gt;InputXML:&lt;BR /&gt;&lt;PRE&gt;&amp;lt;Article&amp;gt;&lt;BR /&gt;  &amp;lt;Id&amp;gt;rfssee343433534534jdjc&amp;lt;/Id&amp;gt;&lt;BR /&gt;  &amp;lt;Title&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/Title&amp;gt;&lt;BR /&gt;  &amp;lt;AdTags&amp;gt;&lt;BR /&gt;    &amp;lt;AdTag&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/AdTag&amp;gt;&lt;BR /&gt;    &amp;lt;AdTag&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/AdTag&amp;gt;&lt;BR /&gt;    &amp;lt;AdTag&amp;gt;&amp;lt;!]&amp;gt;&amp;lt;/AdTag&amp;gt;   &lt;BR /&gt;  &amp;lt;/AdTags&amp;gt;&lt;BR /&gt;  &amp;lt;Data&amp;gt;&lt;BR /&gt;    &amp;lt;Item&amp;gt;&lt;BR /&gt;	&amp;lt;ItemEntityType&amp;gt;Image&amp;lt;/ItemEntityType&amp;gt; 	&lt;BR /&gt;	&amp;lt;ItemFilePath&amp;gt;/Image/mgptHFeghebbf.jpg&amp;lt;/ItemFilePath&amp;gt; 		&lt;BR /&gt;	&amp;lt;/Item&amp;gt; &lt;BR /&gt;  &amp;lt;Item&amp;gt;&lt;BR /&gt;	&amp;lt;ItemEntityType&amp;gt;Image&amp;lt;/ItemEntityType&amp;gt; 	&lt;BR /&gt;	&amp;lt;ItemFilePath&amp;gt;/Image/mgptHFeghfrgtd.jpg&amp;lt;/ItemFilePath&amp;gt; 		&lt;BR /&gt;	&amp;lt;/Item&amp;gt; &lt;BR /&gt;  &amp;lt;/Data&amp;gt;  &lt;BR /&gt;&amp;lt;/Article&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;My queries:&lt;BR /&gt;1.when i read  Title using XPATH query : Article/Title &lt;BR /&gt;    I am getting data without CDATA. how can i get with CDATA.&lt;BR /&gt;2. To get AdTag's values i am using below XPATH Queries.&lt;BR /&gt;     i)  Article/AdTags/* --&amp;gt; returns only first AdTag value .&lt;BR /&gt;     ii) Article/AdTags   --&amp;gt; if i select with GetNodes option checked, schema type as object.  returns Parent element &amp;lt;AdTags&amp;gt; and  child elements. &lt;BR /&gt;                            But i am expecting only  child elements with nodes. how can i get this.&lt;BR /&gt;3. i need to add new element in ItemId using ItemFilePath value it will be added  next to I ItemFilePath element.  &lt;BR /&gt;   &lt;BR /&gt;    eg: &lt;BR /&gt;    ItemFilePath=/Image/mgptHFeghebbf.jpg&lt;BR /&gt;    ItemId=mgptHFeghebbf&lt;BR /&gt;    How can i do this one?&lt;BR /&gt;    &lt;BR /&gt;I am using tFileInputXML  and tAdvancedOutputXML components as of now.</description>
      <pubDate>Mon, 18 Jun 2012 13:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274034#M50834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-18T13:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274035#M50835</link>
      <description>Hi 
&lt;BR /&gt;1. Because CDATA indicates Unparsed Character Data. It will be ignored by XML parser. 
&lt;BR /&gt; If you want to get CDATA, select "Get Nodes" option for this column and use tReplace to remove its node. 
&lt;BR /&gt;2. To get all AdTags, the Xpath loop expression should be /Article/AdTags/AdTag. 
&lt;BR /&gt; Fields to Extract 
&lt;BR /&gt; . AdTag 
&lt;BR /&gt; ../../Id Id 
&lt;BR /&gt; ../../Title Title 
&lt;BR /&gt;3. In your input XML file, there are two loops: AdTag and Item. 
&lt;BR /&gt; So you'd better use two tFileInputXML. 
&lt;BR /&gt; tFileInputXML(loop AdTag)--main-------------------------------------------------------tFileOutputMSXML 
&lt;BR /&gt; tFileInputXML(loop Item)--main----tJavaRow(add ItemId column here)---main---------| 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 19 Jun 2012 07:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274035#M50835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T07:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274036#M50836</link>
      <description>Hi&lt;BR /&gt;You'd better use tFileOutputMSXML instead of tadvancedoutputXML.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 19 Jun 2012 08:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274036#M50836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T08:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274037#M50837</link>
      <description>Ok pedro. i will try.  thank you.</description>
      <pubDate>Tue, 19 Jun 2012 09:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274037#M50837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T09:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274038#M50838</link>
      <description>Hai,&lt;BR /&gt;I am trying to merge 2 files but talend not drawing a Main line between ArticleTagParser to MSXML component. please check my job drawing and comment.</description>
      <pubDate>Tue, 19 Jun 2012 11:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274038#M50838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T11:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274039#M50839</link>
      <description>Hi,&lt;BR /&gt;I think you should be using the tFileInputMSXML component here.&lt;BR /&gt;Regards,&lt;BR /&gt;Arno</description>
      <pubDate>Tue, 19 Jun 2012 11:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274039#M50839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T11:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274040#M50840</link>
      <description>Hai,&lt;BR /&gt;tried with  tFileInputMSXML  instead of tFileInputXML . but i am getting error "talend the schema from the input link is different from the schema defined in the component" .&lt;BR /&gt;It's working one of the Log row either AdTag or Data.  if i enable both getting error.&lt;BR /&gt;the schema from the input link  "AdTag\"  is different from the schema defined in the component.&lt;BR /&gt;i attached screens . please check it.</description>
      <pubDate>Tue, 19 Jun 2012 13:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274040#M50840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-19T13:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274041#M50841</link>
      <description>Hai,&lt;BR /&gt;I am trying to Split and merge XML using MSXML.  but unable to merge.  any one and tell me my job design will work .  &lt;BR /&gt;job design image attached for reference</description>
      <pubDate>Wed, 20 Jun 2012 08:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274041#M50841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T08:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274042#M50842</link>
      <description>Hi&lt;BR /&gt;Talend forbids that any loop linking exists in its job.&lt;BR /&gt;You'd better use two tFileInputXML with different schemas.&lt;BR /&gt; tFileInputXML(loop AdTag)--main-------------------------------------------------------tFileOutputMSXML&lt;BR /&gt;    tFileInputXML(loop Item)--main----tJavaRow(add ItemId column here)---main---------|&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 20 Jun 2012 08:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274042#M50842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T08:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274043#M50843</link>
      <description>Hai,&lt;BR /&gt; i have to read xml's from a directory . so i am getting loop in  tFileInputXML.  can u design a job without loop to read files from directory.&lt;BR /&gt;I attached my design job for your reference.</description>
      <pubDate>Wed, 20 Jun 2012 08:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274043#M50843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T08:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274044#M50844</link>
      <description>Hi
&lt;BR /&gt;I don't know why you put tFileList here.
&lt;BR /&gt;You might see the following images to know more about loop linking.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 20 Jun 2012 08:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274044#M50844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T08:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274045#M50845</link>
      <description>I have a directory which contains articles as xml files. i need to read each file from that directory and then process it .  For this purpose i am using tFileList here.  do u have any other idea  to read files from directory.</description>
      <pubDate>Wed, 20 Jun 2012 09:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274045#M50845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274046#M50846</link>
      <description>Hi&lt;BR /&gt;Child job:&lt;BR /&gt;tFileInputXML(loop AdTag)--main-------------------------------------------------------tFileOutputMSXML&lt;BR /&gt;    tFileInputXML(loop Item)--main----tJavaRow(add ItemId column here)---main---------|&lt;BR /&gt;Main job:&lt;BR /&gt;tFileList --Iterate--&amp;gt;tRunjob(Child job)&lt;BR /&gt;Pass the current file path into child job.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 20 Jun 2012 09:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274046#M50846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T09:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274047#M50847</link>
      <description>Hai,&lt;BR /&gt;i don't know how to  pass xml file name value from main job to child job . i attached my job designs.  please check it.&lt;BR /&gt;i added column xmlfile - ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))  in iteratetoFlow component.</description>
      <pubDate>Wed, 20 Jun 2012 10:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274047#M50847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T10:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274048#M50848</link>
      <description>Hi&lt;BR /&gt;Main job:&lt;BR /&gt;tFileList---Iterate--&amp;gt;tRunJob&lt;BR /&gt;Add a context variable called context.new1 in child job.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 20 Jun 2012 10:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274048#M50848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T10:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274049#M50849</link>
      <description>Hai,&lt;BR /&gt;    Adding context variable disabled in my talend .    i am using Talend open studio big data 5.1.0 .</description>
      <pubDate>Wed, 20 Jun 2012 10:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274049#M50849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T10:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274050#M50850</link>
      <description>Hi&lt;BR /&gt;Even though you are using TOS for BD, it is allowed to add context variable.&lt;BR /&gt;See the following image.&lt;BR /&gt;Then you are able to click on "+" button on tRunjob.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 20 Jun 2012 10:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274050#M50850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-20T10:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: XML parsing and XML creation with Xpath queries problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274051#M50851</link>
      <description>my input/output xml having more inner level nodes. finally i got out put with tMap component and some custom routines functions. 
&lt;BR /&gt;can you tell me how to POST my output XML as a Stream to REST URL services.</description>
      <pubDate>Thu, 21 Jun 2012 14:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-parsing-and-XML-creation-with-Xpath-queries-problem/m-p/2274051#M50851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-21T14:19:14Z</dc:date>
    </item>
  </channel>
</rss>

