Share via


data Property (IXMLDOMCharacterData) (Windows CE 5.0)

Send Feedback

Stores the node data depending on the node type.

[Script]

Script Syntax

strValue=oXMLDOMCharacterData.data;objXMLDOMCharacterData.data=strValue;

Script Parameters

None.

Script Return Value

String. Returns the same value as the nodeValue for this node.

[C/C++]

C/C++ Syntax

HRESULT get_data(BSTR* data);HRESULT put_data(BSTRdata);

C/C++ Parameters

  • data
    [in] [out, retval] Same value as the nodeValue for this node.

C/C++ Return Values

  • S_OK
    Value returned if successful.
  • S_FALSE (for get_data only)
    Value returned if there is no character data node.
  • E_INVALIDARG (for get_data only)
    Value returned if data is Null.
  • E_FAIL (for put_data only)
    Value returned if an error occurs.

Requirements

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

General Remarks

It contains the same value as the nodeValue for this node. The meaning of the value depends on the nodeType property of the IXMLDOMNode, as follows.

Value Description
NODE_CDATA_SECTION A string representing the text stored in the CDATA section.
NODE_COMMENT The content of the comment, exclusive of the comment start and end sequence.
NODE_TEXT A string representing the text stored in the text node.

This property is read/write, and applies to the following objects and interfaces:

IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, IXMLDOMNode, and IXMLDOMText

See Also

nodeType Property | nodeValue Property

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.