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.DOMDocum ent");
var objRootNode;
var objAmendedNode;
//load the xml file
docXML.async = false;
docXML.resolveE xternals = false;
docXML.load("XM LDataFile.xml") ;
//set up the root node
objRootNode = docXML.document Element;
//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.DOMDocum ent");
var objRootNode;
var objAmendedNode;
//load the xml file
docXML.async = false;
docXML.resolveE xternals = false;
docXML.load("XM LDataFile.xml") ;
//set up the root node
objRootNode = docXML.document Element;
//do the stuff here
Comment