I'm trying to read an XML with the XML object but I'm getting unexpected results. I'm using the following code to read in the XML and then create an XML object.
Code: Select all
function parseXML(path)
{
var xml_file = new File(path);
xml_file.open ("r", "XML");
var lines = xml_file.read();
xml_file.close();
return new XML(lines);
}
Code: Select all
<RootNode>
<Project></Project>
</RootNode>
Code: Select all
xml.RootNode;