IXmlNode.NodeValue IXmlNode.NodeValue IXmlNode.NodeValue IXmlNode.NodeValue IXmlNode.NodeValue Property

Definition

Gets or sets the text associated with the node.

public : Platform::Object NodeValue { get; set; }
winrt::Windows::Foundation::IInspectable NodeValue();

void NodeValue(winrt::Windows::Foundation::IInspectable nodevalue);
public object NodeValue { get; set; }
Public ReadWrite Property NodeValue As object
var object = iXmlNode.nodeValue;
iXmlNode.nodeValue = object;

Property Value

object object object

The text associated with the node.

Remarks

This value depends on the NodeType property. The following table describes this dependency.

NodeTypeNodeValue
ElementNull
AttributeValue of attribute
TextContent of the text node
CDATASectionContent of the CDATA Section
EntityReferenceNULL
EntityNULL
ProcessingInstructionEntire content excluding the target
CommentContent of the comment
DocumentNULL
DocumentTypeNULL
DocumentFragmentNULL
NotationNULL