O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The DOMDocument Object

The DOMDocument object is the main object you work with, and it represents the top node in every document tree. When working with the DOM, this is the only object you create directly.

As we'll see in this chapter, there are two ways to create document objects in Internet Explorer: using the Microsoft.XMLDOM class and using XML data islands. Creating a document object with the Microsoft.XMLDOM class looks like this—you explicitly load a document into the object with the load method:

function readXMLDocument() 
{
    var xmldoc
    xmldoc = new ActiveXObject("Microsoft.XMLDOM")
   xmldoc.load("ch07_01.xml")
   .
   .
   .

Microsoft.XMLDOM represents a fairly early version of Microsoft's XML (MSXML) support, but it also represents a common denominator ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required