Package pyxb :: Package utils :: Module saxdom :: Class _DOMSAXHandler
[hide private]
[frames] | no frames]

Class _DOMSAXHandler

source code

xml.sax.handler.ContentHandler --+    
                                 |    
                        object --+    
                                 |    
           saxutils.BaseSAXHandler --+
                                     |
                                    _DOMSAXHandler

SAX handler class that transforms events into a DOM tree.

Instance Methods [hide private]
 
document(self)
The document that is the root of the generated tree.
source code
 
startDocument(self)
Process the start of a document.
source code
 
endDocument(self)
Receive notification of the end of a document.
source code
 
startElementNS(self, name, qname, attrs)
Process the start of an element.
source code
 
endElementNS(self, name, qname)
Process the completion of an element.
source code

Inherited from saxutils.BaseSAXHandler: __init__, characters, elementState, fallbackNamespace, ignorableWhitespace, location, namespaceContext, processingInstruction, reset, rootObject, setDocumentLocator, startPrefixMapping

Inherited from xml.sax.handler.ContentHandler: endElement, endPrefixMapping, skippedEntity, startElement

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __document = None
hash(x)
  _DOMSAXHandler__document = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

startDocument(self)

source code 

Process the start of a document.

This resets this handler for a new document.

Overrides: xml.sax.handler.ContentHandler.startDocument
(inherited documentation)

endDocument(self)

source code 

Receive notification of the end of a document.

The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.

Overrides: xml.sax.handler.ContentHandler.endDocument
(inherited documentation)

startElementNS(self, name, qname, attrs)

source code 

Process the start of an element.

Overrides: xml.sax.handler.ContentHandler.startElementNS
(inherited documentation)

endElementNS(self, name, qname)

source code 

Process the completion of an element.

Overrides: xml.sax.handler.ContentHandler.endElementNS
(inherited documentation)