[ESTK]Add new XML attribute in new XML(**str**)
Hi all,
Here is my code not working.
/////
var xmFile = new File("/Users/user/Desktop/Test.xml");
xmFile.open('r');
var xmCont = xmFile.read();
var myXML = new XML(xmCont);
var tmpXpath = "//imagedata[@fileref]";
var xmlXPath = myXML.xpath(tmpXpath);
if(xmlXPath.length() > 0)
{
xmlXPath[0].attibutes.add("href", "file:///Users/user/Desktop/Figures/Images/Test.jpg"); //Error at this line
}
Please give any helps!!
thanks,
John.