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

PropertyDescription
prefixGets the namespace prefix of attribute.
local_nameGets the local name of attribute.
namespace_uriGets the namespace URI of attribute.
valueGets the value of attribute.
is_idReturns whether this attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not.
specifiedTrue if this attribute was explicitly given a value in the instance document, false otherwise.
nameGets the name of this attribute.

See Also