Hey all,
I am sort of new in XML, here is my problem:
I am trying to update an XML document, for that matter I load it with a javascript code, and did some editting - only when try xmlDoc.save("filename.xml"); i get an error saying "permission denied" - So i can not save the xml and hence i can not update it.
here is the code in case it helps:
function f()
{
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load("note.xml");
xmlDoc.selectSingleNode("//to").setAttribute("urgent", "Dan");
document.write(xmlDoc.selectSingleNode("//to").getAttribute("urgent"));
xmlDoc.save("somefile.xml")
}
thanks in advance,
Dan
I am sort of new in XML, here is my problem:
I am trying to update an XML document, for that matter I load it with a javascript code, and did some editting - only when try xmlDoc.save("filename.xml"); i get an error saying "permission denied" - So i can not save the xml and hence i can not update it.
here is the code in case it helps:
function f()
{
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load("note.xml");
xmlDoc.selectSingleNode("//to").setAttribute("urgent", "Dan");
document.write(xmlDoc.selectSingleNode("//to").getAttribute("urgent"));
xmlDoc.save("somefile.xml")
}
thanks in advance,
Dan