PyDocs

Nav

Structured Markup Processing Tools

Document

xml.dom

class
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

createAttribute
Create and return an attribute node.
createAttributeNS
Create and return an attribute node with a namespace.
createCDATASection
Create and return a CDATASection node containing data.
createComment
Create and return a comment node containing the data passed as a parameter.
createDocumentFragment
Create and return an empty DocumentFragment node.
createElement
Create and return a new element node.
createElementNS
Create and return a new element with a namespace.
createProcessingInstruction
Create and return a processing instruction node containing the target and data passed as parameters.
createTextNode
Create and return a text node containing the data passed as a parameter.

d

doctype
The DocumentType node of the document, or None.
documentElement
The one and only root element of the document.
documentURI
The location of the document, or None if it is unknown.

g

getElementById
Return the element with the given ID, or None.
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.

s

strictErrorChecking
Whether error checking is enforced.
0 Examples
No examples for xml.dom/Document.
See Also
No see-alsos for xml.dom/Document
0 Notes
No notes for Document