Microsoft XML SDK 2.6 - XML Reference

IXMLDOMDocument::loadXML Method

Loads an XML document using the supplied string.

Visual Basic Syntax

boolValue = oXMLDOMDocument.loadXML(bstrXML)

C/C++ Syntax

HRESULT loadXML(
    BSTR xmlString,
    VARIANT_BOOL *isSuccessful);

Parameters

xmlString [in]
XML string to load into this XML document object. This string can contain an entire XML document or a well-formed fragment.
isSuccessful [out]
True if the XML load succeeded. This method returns False and sets the DOMDocument object's documentElement property to Null if the XML load failed.

C/C++ Return Values

S_OK
Value returned if successful.
S_FALSE
Value returned if the load fails.
E_INVALIDARG
Value returned if isSuccessful is Null.

Remarks

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

This member is an extension of the W3C DOM.

See Also

IXMLDOMDocument Interface | XML DOM Persistence