The XmlReader class provides various methods and properties
for reading attributes. Attributes are most commonly found on elements.
However, they are also allowed on XML declaration and document type nodes.
When positioned on an element node, the MoveToAttribute
methods enable you to go through the attribute list of the element. After
MoveToAttribute has been called, the node properties—such as Name,
NamespaceURI, Prefix, and so on—reflect the properties of that attribute, and
not the containing element it belongs to.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The XmlReader class provides various methods and properties for reading attributes. Attributes are most commonly found on elements. However, they are also allowed on XML declaration and document type nodes.
When positioned on an element node, the MoveToAttribute methods enable you to go through the attribute list of the element. After MoveToAttribute has been called, the node properties—such as Name, NamespaceURI, Prefix, and so on—reflect the properties of that attribute, and not the containing element it belongs to.