<?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 [resolved] Open XML files and modify content in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366093#M129622</link>
    <description>Hi all,
&lt;BR /&gt;I want to open a group of xml files that are in a specific folder one by one. I want to modify a line inside each of them
&lt;BR /&gt;and then save them.
&lt;BR /&gt;How can i perform that? 
&lt;BR /&gt;
&lt;BR /&gt;Regards</description>
    <pubDate>Mon, 19 Aug 2013 08:55:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-19T08:55:54Z</dc:date>
    <item>
      <title>[resolved] Open XML files and modify content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366093#M129622</link>
      <description>Hi all,
&lt;BR /&gt;I want to open a group of xml files that are in a specific folder one by one. I want to modify a line inside each of them
&lt;BR /&gt;and then save them.
&lt;BR /&gt;How can i perform that? 
&lt;BR /&gt;
&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 19 Aug 2013 08:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366093#M129622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-19T08:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Open XML files and modify content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366094#M129623</link>
      <description>Hi, 
&lt;BR /&gt;You can use tfilelist to get these xml files where are in a specific folder one by one and then edit your xml in output file. 
&lt;BR /&gt;The work flow should be: tfilelist--&amp;gt;tfileinputxml--&amp;gt;tAdvancedFileOutputXML. 
&lt;BR /&gt;See my screenshots 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAkh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140132i45FB25ED134520E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAkh.png" alt="0683p000009MAkh.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAu6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142134iE10697DA9ED37EA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAu6.png" alt="0683p000009MAu6.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAXL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132087i58CC687B37439622/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAXL.png" alt="0683p000009MAXL.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 19 Aug 2013 09:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366094#M129623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-19T09:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Open XML files and modify content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366095#M129624</link>
      <description>thank,&lt;BR /&gt;but i am affraid it could not help.&lt;BR /&gt;My problem is that i want to change the string "&amp;lt;?xml version="1.1" encoding="UTF-8"?&amp;gt;" to &lt;BR /&gt;"&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;" at the header of the xml file.&lt;BR /&gt;Where can i see this string in order to change it?&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 19 Aug 2013 15:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366095#M129624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-19T15:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Open XML files and modify content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366096#M129625</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;thank,&lt;BR /&gt;but i am affraid it could not help.&lt;BR /&gt;My problem is that i want to change the string "&amp;lt;?xml version="1.1" encoding="UTF-8"?&amp;gt;" to &lt;BR /&gt;"&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;" at the header of the xml file.&lt;BR /&gt;Where can i see this string in order to change it?&lt;BR /&gt;Regards&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi 
&lt;BR /&gt;Use a tFileList to iterate each XML file, and use a tFileInputFullRow to read the XML line by line, link it to a tReplace to replace version="1.1" with version="1.0", and regenarate the XML file in another folder, please see my screenshots for details. 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAuB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137985i88780A95E1591A91/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAuB.png" alt="0683p000009MAuB.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAuG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152394iE538193A022B337C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAuG.png" alt="0683p000009MAuG.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAtT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139964i17948039F167AE75/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAtT.png" alt="0683p000009MAtT.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 19 Aug 2013 16:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366096#M129625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-19T16:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Open XML files and modify content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366097#M129626</link>
      <description>Thank you shong
&lt;BR /&gt;it helped me !
&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 28 Aug 2013 09:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366097#M129626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-28T09:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Open XML files and modify content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366098#M129627</link>
      <description>Is this approach also recommend for replacing single values in XML elements?</description>
      <pubDate>Wed, 02 Apr 2014 08:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366098#M129627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-02T08:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Open XML files and modify content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366099#M129628</link>
      <description>Hi ohofrichter, &lt;BR /&gt;What's your XML structure? Could you set an example for your case with input and expected output values so that we can see if this approach is suitable for you.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 02 Apr 2014 08:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366099#M129628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-02T08:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Open XML files and modify content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366100#M129629</link>
      <description>Another problem: how to replace particular lines based on an external lookup? 
&lt;BR /&gt;Example: 
&lt;BR /&gt;&amp;lt;NodeA&amp;gt; 
&lt;BR /&gt; &amp;lt;NodeB key="Text1"&amp;gt;0099&amp;lt;/Wert&amp;gt; 
&lt;BR /&gt; &amp;lt;NodeB key="Text2"&amp;gt;0100&amp;lt;/Wert&amp;gt; 
&lt;BR /&gt;&amp;lt;/NodeA&amp;gt; 
&lt;BR /&gt;lookup table: 
&lt;BR /&gt;0099;0100 
&lt;BR /&gt;Only in the line with key="Text1" 0099 has to be replaced by 0100. 
&lt;BR /&gt;The lookup table shall only contain the numerals. 
&lt;BR /&gt;In the attached screenshot you can see the job I created for this requirement. Can I configure component tFileInputFullRow to handle only particular lines? Or is there another solution for such an requirement? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAo5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132591i2A74548AFB28B8FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAo5.png" alt="0683p000009MAo5.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 02 Apr 2014 08:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Open-XML-files-and-modify-content/m-p/2366100#M129629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-02T08:27:54Z</dc:date>
    </item>
  </channel>
</rss>

