HOW DO WE ACCESS ATTRIBUTES USING “XMLREADER”?

Vijay Shukla

Total Post:81

Points:405
Posted by  Vijay Shukla
XML 
XML
 1589  View(s)
Ratings:
Rate this:
  1. Vijay Shukla

    Post:81

    Points:405
    How do we access attributes using “XmlReader”?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!