class documentation

class Document(Node): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method append​Child Make the given Node the document element of this Document.
Method clone​Node Undocumented
Method create​Comment Undocumented
Method create​Element Undocumented
Method create​Text​Node Undocumented
Method get​Element​By​Id Undocumented
Method get​Elements​By​Tag​Name Undocumented
Method is​Equal​To​Document Undocumented
Method writexml Undocumented
Class Variable doctype Undocumented
Property document​Element Undocumented

Inherited from Node:

Method first​Child Undocumented
Method has​Child​Nodes Undocumented
Method insert​Before Make the given Node new a child of this node which comes before the Node ref.
Method is​Equal​To​Node Compare this node to other. If the nodes have the same number of children and corresponding children are equal to each other, return True, otherwise return False.
Method last​Child Undocumented
Method remove​Child Remove the given Node from this node's children.
Method replace​Child Replace a Node which is already a child of this node with a different node.
Method toprettyxml Undocumented
Method toxml Undocumented
Method writeprettyxml Undocumented
Class Variable node​Name Undocumented
Instance Variable child​Nodes Undocumented
Instance Variable parent​Node Undocumented
def __init__(self, documentElement=None): (source)

Undocumented

def appendChild(self, child): (source)
Make the given Node the document element of this Document.
Parameters
childThe Node to make into this Document's document element.
Raises
ValueErrorIf this document already has a document element.
def cloneNode(self, deep=0, parent=None): (source)

Undocumented

def createComment(self, text): (source)

Undocumented

def createElement(self, name, **kw): (source)

Undocumented

def createTextNode(self, text): (source)

Undocumented

def getElementById(self, id): (source)

Undocumented

def getElementsByTagName(self, name): (source)

Undocumented

def isEqualToDocument(self, n): (source)

Undocumented

def writexml(self, stream, indent='', addindent='', newl='', strip=0, nsprefixes={}, namespace=''): (source)

Undocumented

doctype = (source)

Undocumented

@property
documentElement = (source)

Undocumented