University of Cincinnati logo and link  
Getting Attributes
 
  UC ingot Attributes are the name=value entries in our tags.
    • We can get these attributes with the getAttributes method of Element.  This returns to us a NamedNodeMap, through which we can iterate.
      • Pass an index number to the item method of he NamedNodeMap to get the corresponding Node.  Then use the Node methods to do with it what we wish.
    • Alternatively, you can pass an attribute name to the getAttribute method of Element.
 Reading Database Properties from XML