R
Rinchenzo-La
Hey there
I've got a little stuck with the XML DOM in jscript (only just
learning jscript so this might be a bit of a dumb question!)
I'm using jscript inside an HTML page to open an XML DOMDocument
object, do stuff to the xml then I'd really like to save the changes
(have done this a million times in VB apps) - which is where the
problem comes in....
here's my jscript function that gets called from a button on the hmtl
form:
function SaveCall()
{
//initialise variables
var docXML = new ActiveXObject("MSXML2.DOMDocument");
var objRootNode;
var objAmendedNode;
//load the xml file
docXML.async = false;
docXML.resolveExternals = false;
docXML.load("XMLDataFile.xml");
//set up the root node
objRootNode = docXML.documentElement;
//do the stuff here
I've got a little stuck with the XML DOM in jscript (only just
learning jscript so this might be a bit of a dumb question!)
I'm using jscript inside an HTML page to open an XML DOMDocument
object, do stuff to the xml then I'd really like to save the changes
(have done this a million times in VB apps) - which is where the
problem comes in....
here's my jscript function that gets called from a button on the hmtl
form:
function SaveCall()
{
//initialise variables
var docXML = new ActiveXObject("MSXML2.DOMDocument");
var objRootNode;
var objAmendedNode;
//load the xml file
docXML.async = false;
docXML.resolveExternals = false;
docXML.load("XMLDataFile.xml");
//set up the root node
objRootNode = docXML.documentElement;
//do the stuff here