Attr interface - The Attr interface represents an attriubte in an Element object. Attr objects inherit the Node Interface
There are no implemented interfaces.
There are no attributes in this class.
getAttributes()
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
getChildNodes(type=<type 'type'>, sts=(<type 'str'>, <type 'unicode'>))
Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList
getChildren()
Get a Python sequence of children
getFirstChild(type=<type 'type'>, sts=(<type 'str'>, <type 'unicode'>))
The first child of this node. If there is no such node this returns None
getLastChild(type=<type 'type'>, sts=(<type 'str'>, <type 'unicode'>))
The last child of this node. If there is no such node this returns None.
getName()
Returns the name of this attribute.
getNextSibling()
The node immediately preceding this node. If there is no such node, this returns None.
getNodeName()
The name of this node, depending on its type
getNodeType()
A code representing the type of the node.
getNodeValue()
The value of this node, depending on its type
getOwnerDocument()
The Document object associated with this node, if any.
getParentNode()
The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent
getPreviousSibling()
The node immediately preceding this node. If there is no such node, this returns None.
getSpecified()
If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false.
hasChildNodes()
Returns true if the node has any children, false if it doesn't.
There are no known subclasses.