METHOD:  Document::load

This method is a Microsoft extension to the W3C DOM.


The load method loads an XML document from the specified location. If the URL cannot be resolved or accessed, or does not reference an XML document, this method returns an error and sets the Document object's documentElement property to null.

The load method can take any object that supports IStream and the IIS Request object. Calling load on an existing document immediately discards the content of it.

Note that Schemas are not applied when loading an XML document from a string.

The following example demonstrates this method.

Code (JavaScript):
xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information