load Method

Loads an XML document from the specified location.

boolValue = oXMLDOMDocument.load(xmlSource);

HRESULT load(
  VARIANT xmlSource,
  VARIANT_BOOL* isSuccessful
);

General Remarks

If the URL cannot be resolved or accessed or does not reference an XML document, this method returns an error and sets the documentElement property of the DOMDocument to Null.

The load method can also take any object that supports IStream and the Microsoft® Internet Information Services (IIS) Request object.

Calling load or loadXML on an existing document immediately discards the content of the document.

Schemas are not applied when loading XML from a string.

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

This method applies to the following interface:

DOMDocument.

See Also

loadXML Method | documentElement Property

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.