Share via


loadXML Method

Loads an XML document using the supplied string.

boolValue = oXMLDOMDocument.loadXML(bstrXML);

HRESULT loadXML(
  BSTR bstrXML,
  VARIANT_BOOL* isSuccessful
);

General Remarks

Calling load or loadXML on an existing document immediately discards the content of the document. The loadXML will work only with UTF-16 or UCS-2 encodings.

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

This method applies to the following interface:

DOMDocument.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.

See Also

load Method | documentElement Property

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.