Xml.XMLDoc.TXMLNode.SetNodeValue
Delphi
procedure SetNodeValue(const Value: OleVariant);
C++
void __fastcall SetNodeValue(const System::OleVariant &Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLNode |
Description
Sets the value of this node.
Use the TXMLNode object's IXMLNode interface to call the protected SetNodeValue method. SetNodeValue sets the value of this node.
Value is the value to assign. Its meaning 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, SetNodeValue raises 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. |
If the node is any other node type, SetNodeValue raises an exception. |