Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Element objects > getElementsByTagName - Pg. 582

getAttribute Returns the list of Element instances within the document with the given namespaceURI and localName , in the order found in the XML document. May be the empty list. A value of ' * ' for namespaceURI , localName , or both matches all values of the corresponding field. Element objects The Element class is a subclass of Node that represents tagged elements. Besides at- tributes and methods of Node , an instance e of Element supplies the following meth- ods. getAttribute e.getAttribute(name) Returns the value of e 's attribute with the given name . Returns the empty string '' if e has no attribute with the given name . getAttributeNS e.getAttributeNS(namespaceURI,localName) Returns the value of e 's attribute with the given namespaceURI and localName .