Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Contains this node's data, which depends on the node type.
Syntax
HRESULT get_data( BSTR * data);
Parameters
- data
- [out] Same value as the nodeValue for this node.
This value depends on the value of the IDOMNode object's nodeType property, as follows:
- NODE_CDATA_SECTION
- Contains a string representing the text stored in the CDATA section.
- NODE_COMMENT
- Contains the content of the comment, exclusive of the comment begin and end sequence.
- NODE_TEXT
- Contains a string representing the text stored in the text node.
Contains this node's data, which depends on the node type.
Syntax
HRESULT put_data( BSTR * data);
Parameters
- data
- [out] Same value as the nodeValue for this node.
This value depends on the value of the IDOMNode object's nodeType property, as follows:
- NODE_CDATA_SECTION
- Contains a string representing the text stored in the CDATA section.
- NODE_COMMENT
- Contains the content of the comment, exclusive of the comment begin and end sequence.
- NODE_TEXT
- Contains a string representing the text stored in the text node.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This value depends on the value of the IDOMNode nodeType property, as follows:
- NODE_CDATA_SECTION
- Contains a string representing the text stored in the CDATA section.
- NODE_COMMENT
- Contains the content of the comment, exclusive of the comment begin and end sequence.
- NODE_TEXT
- Contains a string representing the text stored in the text node.
Returns an error if the data size is larger than can be stored in a single string. In that case, the data must be obtained using multiple calls to substring.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.