Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.39 KB

xmlattribute_nodevalue.md

File metadata and controls

43 lines (33 loc) · 1.39 KB
-api-id -api-type
P:Windows.Data.Xml.Dom.XmlAttribute.NodeValue
winrt property

Windows.Data.Xml.Dom.XmlAttribute.NodeValue

-description

Gets or sets the text associated with the node.

-property-value

The text associated with the node.

-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.

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

-examples

-see-also