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 IXMLDOMDocument object's documentElement property to NULL if the XML load failed.
C/C++ Return Values
- S_OK
- Value returned if successful.
- S_FALSE
- Value when VARIANT_FALSE is returned.
- 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.