The Attr interface contains methods and properties that apply to an XML element object.

The nodeType value is 2.

XML Attribute interface methods and properties

Name Description
baseURI Attribute that returns absolute URI address.
isID Attribute that returns TRUE if the attribute is of type 'id'.
localName Attribute that returns the local part of an attribute.
schemeTypeInfo Attribute that returns the type information of an attribute.
textContent Attribute that sets or returns the content of a 'text' attribute.
value Attribute that sets or returns the value of an attribute.