Partager via


data Property (IXMLDOMCharacterData)

Stores the node data depending on the node type.

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

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

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

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.