Attr class

An Attr object represents an attribute of an XML element.

Attr inherits from the Node class, so all functions defined for Node can be used with Attr.

Name

getQualifiedName( ) : String

Returns the qualified attribute name, that is, including the namespace prefix if there is one.

getBaseName( ) : String

Returns the attribute name without the namespace prefix.

getPrefix( ) : String

Returns the namespace prefix or the empty string if there is none.

getNamespaceURI( ) : String

Returns the namespace URI corresponding to namespace prefix or the namespace URI for the element owning this attribute if there is no prefix or the empty string if there is no prefix and no element namespace.

Value

getValue( ) : String

Returns the value of this attribute.