RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNode.NodeValue Property

Specifies the value of this node.

Pascal
property NodeValue: OleVariant;
C++
__property OleVariant NodeValue;

Use NodeValue to get or set the value of the node. The meaning of a node's value depends on the type of the node, as indicated in the following table:

Value 
ntAttribute  
The attribute value  
ntElement  
If the element contains only text, this is that text value. Otherwise, trying to read or set NodeValue causes an exception.  
ntText  
The text  
ntCData  
The content of the CDATA section.  
ntProcessingInstr  
The content of the processing instruction except for the target.  
ntComment  
The value (text) of the comment.  

Trying to read or set the value of any other node type causes an exception. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!