January 16, 2002|
Tips: January 2002
Yehuda Shiran, Ph.D.
DOMDocumentobject has 35 properties, 25 methods, and 3 events. With this object, you can load XML files, navigate the document graph model, query nodes of the graph, etc. The first thing you need to do is to create an empty object. You do it with the
You load an XML file with the
xmldoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
The following script loads an XML file and prints its content to an alert box:
Try it in IE. You should get the XML file echoed back in an alert box.