-api-id | -api-type |
---|---|
P:Windows.Data.Xml.Dom.XmlAttribute.NodeValue |
winrt property |
Gets or sets the text associated with the node.
The text associated with the node.
On retrieval, the value of this attribute is returned as a string. Character and general entity references are replaced with their values.
On setting, this property creates a Text node with the unparsed contents of the string.
This value depends on the NodeType property. The following table describes this dependency.
NodeType | NodeValue |
---|---|
Element | Null |
Attribute | Value of attribute |
Text | Content of the text node |
CDATASection | Content of the CDATA Section |
EntityReference | NULL |
Entity | NULL |
ProcessingInstruction | Entire content excluding the target |
Comment | Content of the comment |
Document | NULL |
DocumentType | NULL |
DocumentFragment | NULL |
Notation | NULL |