Attr class

Attr class

The Attr interface represents an attribute in an Element object. Typically the allowable values for the attribute are defined in a schema associated with the document.

The Attr type exposes the following members:

Properties

Property Description
prefix Gets the namespace prefix of attribute.
local_name Gets the local name of attribute.
namespace_uri Gets the namespace URI of attribute.
value Gets the value of attribute.
is_id Returns whether this attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not.
specified True if this attribute was explicitly given a value in the instance document, false otherwise.
name Gets the name of this attribute.

See Also