Parse XML data from string (import from external file)
I imported a XML formatted file from the file system using var cData = util.readFileIntoStream(cXMLFilePath). Then I converted the stream to string by var sData=util.stringFromStream(cData). It works fine and I was able to view it by console.println(sData). The I used the XMLData.parse(sData,false). I got an error message indicating the console was not able to parse. I use this technique XMLdata.parse(string,false) before with inline scripting look something var inlineXML = "<xmltags><t1>text1</t1></xmltags>". Any idea would help. Thanks in advance.
Ben Chan