XmlAttribute.NodeValue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the text associated with the node.
public:
property Platform::Object ^ NodeValue { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable NodeValue();
void NodeValue(IInspectable value);
public object NodeValue { get; set; }
var object = xmlAttribute.nodeValue;
xmlAttribute.nodeValue = object;
Public Property NodeValue As Object
Property Value
The text associated with the node.
Implements
Remarks
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 |