Node.NodeValue property

The nodeValue property of the Node interface returns or sets the value of the current node.

public virtual string NodeValue { get; set; }

Property Value

A string containing the value of the current node, if any. For the document itself, nodeValue returns null. For text, comment, and CDATA nodes, nodeValue returns the content of the node. For attribute nodes, the value of the attribute is returned.



DOM Standard - defines a platform-neutral model for events, aborting activities, and node trees.DOM Standard (DOM) # dom-node-nodevalue.GitHub - repository hosts the DOM Standard.

See Also