PyDocs

Nav

Structured Markup Processing Tools

Element

xml.dom

class
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.
getAttributeNode
Return the Attr node for the attribute named by attrname.
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.
getElementsByTagName
Same as equivalent method in the Document class.
getElementsByTagNameNS
Same as equivalent method in the Document class.

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.

r

removeAttribute
Remove an attribute by name.
removeAttributeNode
Remove and return oldAttr from the attribute list, if present.
removeAttributeNS
Remove an attribute by name.

s

setAttribute
Set an attribute value from a string.
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.

t

tagName
The element type name.
0 Examples
No examples for xml.dom/Element.
See Also
No see-alsos for xml.dom/Element
0 Notes
No notes for Element