Xml.XMLIntf.IXMLNode.NodeValue
Delphi
property NodeValue: OleVariant read GetNodeValue write SetNodeValue;
C++
__property System::OleVariant NodeValue = {read=GetNodeValue, write=SetNodeValue};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | public | Xml.XMLIntf.pas Xml.XMLIntf.hpp |
Xml.XMLIntf | IXMLNode |
Description
Specifies the value of this node.
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:
| NodeType | 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.