Staging: this is not the live site, pydocs.org.
Structured Markup Processing Tools
A Document represents an entire XML document, including its constituent elements, attributes, processing instructions, comments etc. Remember that it inherits properties from Node. Members of Document c createComment Create and return a comment node containing the data passed as a parameter. createTextNode Create and return a text node containing the data passed as a parameter. d doctype The DocumentType node of the document, or None. documentURI The location of the document, or None if it is unknown. g getElementsByTagName Search for all descendants (direct children, children’s children, etc.) with a particular element type name. getElementsByTagNameNS Search for all descendants (direct children, children’s children, etc.) with a particular namespace URI and localname. i implementation The DOMImplementation object which created this document. importNode Return a copy of importedNode which belongs to this document. r renameNode Rename the element or attribute node n and return it.
Python docs © Python Software Foundation · Examples CC0 ·
Source on GitHub · Not affiliated with the PSF