Share via


loadXML Method (Windows CE 5.0)

Send Feedback

Loads an XML document using the supplied string.

[Script]

Script Syntax

boolValue=oXMLDOMDocument.loadXML(bstrXML);

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 documentElement property of the DOMDocument to Null if the XML load failed.

[C/C++]

C/C++ Syntax

HRESULT loadXML(BSTRbstrXML,VARIANT_BOOL* isSuccessful);

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 documentElement property of the DOMDocument object 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.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.