Staging: this is not the live site, pydocs.org.
Structured Markup Processing Tools
Element is a subclass of Node, so inherits all the attributes of that class.
Members of Element
g
- getAttribute
- Return the value of the attribute named by name as a string.
- getAttributeNodeNS
- Return an attribute value as a node, given a namespaceURI and localName.
- getAttributeNS
- Return the value of the attribute named by namespaceURI and localName as a string.
h
- hasAttribute
- Return True if the element has an attribute named by name.
- hasAttributeNS
- Return True if the element has an attribute named by namespaceURI and localName.
s
- setAttributeNode
- Add a new attribute node to the element, replacing an existing attribute if necessary if the name attribute matches.
- setAttributeNodeNS
- Add a new attribute node to the element, replacing an existing attribute if necessary if the namespaceURI and localName attributes match.
- setAttributeNS
- Set an attribute value from a string, given a namespaceURI and a qname.
- setIdAttribute
- Declare that the attribute name is of type ID, so that the element is found by Document.getElementById().
- setIdAttributeNode
- The same as setIdAttribute(), but for an already retrieved attribute node.
- setIdAttributeNS
- The same as setIdAttribute(), but for an attribute specified by its namespace URI and local name.