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.
A version of this page is also available for
4/8/2010

Stores the node data depending on the node type.

Script Syntax

Copy Code
		
strValue = oXMLDOMCharacterData.data;
objXMLDOMCharacterData.data = 
strValue;

Remarks

Script Parameters

None.

Script Return Value

String. Returns the same value as the nodeValuefor this node.

C/C++ Syntax

Copy Code
HRESULT get_data(
  BSTR* 
data
);
HRESULT put_data(
  BSTR 
data
);

Remarks

C/C++ Parameters

data

[in] [out, retval] Same value as the nodeValuefor 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 datais Null.

E_FAIL (for put_data only)

Value returned if an error occurs.

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

It contains the same value as the nodeValuefor this node. The meaning of the value depends on the nodeTypeproperty 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