<?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: Replace backslash from filepath in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Replace-backslash-from-filepath/m-p/2315067#M85769</link>
    <description>Thank you Shong... Its work.</description>
    <pubDate>Mon, 06 May 2013 09:50:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-06T09:50:10Z</dc:date>
    <item>
      <title>Replace backslash from filepath</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-backslash-from-filepath/m-p/2315065#M85767</link>
      <description>Hi,
&lt;BR /&gt;I want to validate all .xml file against relative .xsd file. I have to fetch each .Xml file from "xmldataload/data" and .Xsd from "xmldataload/conf" directory. So I have created my job as mentioned below
&lt;BR /&gt;
&lt;BR /&gt;tFileList-------------------------------&amp;gt; tXSDValidator
&lt;BR /&gt;Properties assigned
&lt;BR /&gt;tFileList
&lt;BR /&gt;Directory: xmldataload/data
&lt;BR /&gt;
&lt;BR /&gt;tXSDValidator
&lt;BR /&gt;Xsd file:
&lt;BR /&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")).toLowerCase().replace("/data","/conf").replace(".xml",".xsd")
&lt;BR /&gt;Xml file:
&lt;BR /&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) 
&lt;BR /&gt;
&lt;BR /&gt;I am facing issue with replace function. for .Xsd file path replace function is not working for "/" backslash.
&lt;BR /&gt;replace("/data","/conf") is not replacing the string.
&lt;BR /&gt;If I write
&lt;BR /&gt;replace("data","conf") then Its works but in my file path xmldataload/data also got chaged to xml
&lt;B&gt;conf&lt;/B&gt;load/
&lt;B&gt;conf&lt;/B&gt; rather then I want xmldataload/
&lt;B&gt;conf&lt;/B&gt;
&lt;BR /&gt;Please help to get proper file path.</description>
      <pubDate>Sat, 04 May 2013 08:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-backslash-from-filepath/m-p/2315065#M85767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-04T08:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replace backslash from filepath</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-backslash-from-filepath/m-p/2315066#M85768</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")).toLowerCase().replace("/data","/conf").replace(".xml",".xsd")&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Change it to this expression should work. 
&lt;BR /&gt; 
&lt;PRE&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")).toLowerCase().replace("\\data","\\conf").replace(".xml",".xsd")&lt;/PRE&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 04 May 2013 10:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-backslash-from-filepath/m-p/2315066#M85768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-04T10:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace backslash from filepath</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-backslash-from-filepath/m-p/2315067#M85769</link>
      <description>Thank you Shong... Its work.</description>
      <pubDate>Mon, 06 May 2013 09:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-backslash-from-filepath/m-p/2315067#M85769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-06T09:50:10Z</dc:date>
    </item>
  </channel>
</rss>

