Hi, 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
tXSDValidator Xsd file: ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")).toLowerCase().replace("/data","/conf").replace(".xml",".xsd") Xml file: ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))
I am facing issue with replace function. for .Xsd file path replace function is not working for "/" backslash. replace("/data","/conf") is not replacing the string. If I write replace("data","conf") then Its works but in my file path xmldataload/data also got chaged to xmlconfload/conf rather then I want xmldataload/conf Please help to get proper file path.