XML DOM » Document » load

Syntax:
document.load(url)

This 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 andthe 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.

Examples

Code:
xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;
xml_doc.load("staff.xml");
Language(s): JavaScript