Expand Minimize

XmlElement.Attributes | attributes property

Applies to Windows and Windows Phone

Gets the list of attributes of this node.

Syntax


var attributes = xmlElement.attributes;

Property value

Type: XmlNamedNodeMap

The attributes for this node.

Remarks

This property returns a XmlNamedNodeMap for the nodes that can return attributes. These are the Element, Entity, and Notation nodes. This property is NULL for all other node types. For the valid node types, the XmlNamedNodeMap is always returned; when there are no attributes on the element, the list length is set to zero.

The following table describes the attributes for the node types.

NodeTypeAttributes
ElementIXmlNamedNodeMap
Attribute NULL
TextNULL
CDATASectionNULL
EntityReferenceNULL
EntityNULL
ProcessingInstructionNULL
CommentNULL
DocumentNULL
DocumentType NULL
DocumentFragment NULL
NotationNULL

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Xml.Dom
Windows::Data::Xml::Dom [C++]

Metadata

Windows.winmd

See also

XmlElement

 

 

Show:
© 2014 Microsoft