simonchristieis
Programmer
I have an xml file, I can access the file and display, what I want to do is change the data in the file.
eg
var xmlDoc = new ActiveXObject("msxml2.DOMDocument.4.0"
;
xmlDoc.async=false;xmlDoc.resolveExternals=false;
xmlDoc.validateOnParse=false;
xmlDoc.load("xml/test.xml"
;
tName = "Mr Wallis"
nodes=xmlDoc.selectNodes("/school/teachersname='" +tName+ "']/*"
but what I would like to do is change the name to "Mr Williams"
then I would like to delete the entire node set
Can anyone help or point me towards a tutorial ?
Thanks in advance
eg
var xmlDoc = new ActiveXObject("msxml2.DOMDocument.4.0"
xmlDoc.async=false;xmlDoc.resolveExternals=false;
xmlDoc.validateOnParse=false;
xmlDoc.load("xml/test.xml"
tName = "Mr Wallis"
nodes=xmlDoc.selectNodes("/school/teachersname='" +tName+ "']/*"
but what I would like to do is change the name to "Mr Williams"
then I would like to delete the entire node set
Can anyone help or point me towards a tutorial ?
Thanks in advance