Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Loads an XML document using the supplied string.
Script Syntax
Copy Code | |
---|---|
boolValue = oXMLDOMDocument.loadXML( bstrXML); |
Remarks
Script Parameters
- bstrXML
-
String containing the XML string to load into this XML document object. This string can contain an entire XML document or a well-formed fragment.
Script Return Value
Boolean. Returns True if the XML load succeeded. Returns False and sets the documentElementproperty of the DOMDocumentto Null if the XML load failed.
C/C++ Syntax
Copy Code | |
---|---|
HRESULT loadXML( BSTR bstrXML, VARIANT_BOOL* isSuccessful ); |
Remarks
C/C++ Parameters
- bstrXML
-
[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, retval] True if the XML load succeeded. This method returns False and sets the documentElementproperty of the DOMDocumentobject 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 isSuccessfulis Null.
Requirements
Header | msxml2.h, msxml2.idl |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
General Remarks
Calling the load Methodor loadXMLon an existing document immediately discards the content of the document. The loadXMLwill 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:
Requirements
Header | msxml2.h, msxml2.idl |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |