Package bridge :: Package parser :: Module bridge_default :: Class IncrementalHandler
[show private | hide private]
[frames | no frames]

Class IncrementalHandler

ContentHandler --+    
                 |    
      XMLGenerator --+
                     |
                    IncrementalHandler

Known Subclasses:
DispatchHandler

Method Summary
  __init__(self, out, encoding)
  _split_qname(self, qname)
  characters(self, content)
Receive notification of character data.
  comment(self, data)
  doc(self)
Returns the root bridge.Document instance of the parsed document.
  endCDATA(self)
  endDTD(self)
  endElementNS(self, name, qname)
Signals the end of an element in namespace mode.
  processingInstruction(self, target, data)
Receive notification of a processing instruction.
  startCDATA(self)
  startDocument(self)
Receive notification of the beginning of a document.
  startDTD(self, name, public_id, system_id)
  startElementNS(self, name, qname, attrs)
Signals the start of an element in namespace mode.
    Inherited from XMLGenerator
  endElement(self, name)
Signals the end of an element in non-namespace mode.
  endPrefixMapping(self, prefix)
End the scope of a prefix-URI mapping.
  ignorableWhitespace(self, content)
  startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
  startPrefixMapping(self, prefix, uri)
Begin the scope of a prefix-URI Namespace mapping.
    Inherited from ContentHandler
  endDocument(self)
Receive notification of the end of a document.
  setDocumentLocator(self, locator)
Called by the parser to give the application a locator for locating the origin of document events.
  skippedEntity(self, name)
Receive notification of a skipped entity.

Class Variable Summary
    Inherited from XMLGenerator
str GENERATED_PREFIX = 'xml.sax.saxutils.prefix%s'

Method Details

characters(self, content)

Receive notification of character data.

The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information.
Overrides:
_xmlplus.sax.saxutils.XMLGenerator.characters (inherited documentation)

doc(self)

Returns the root bridge.Document instance of the parsed document. You have to call the close() method of the parser first.

endElementNS(self, name, qname)

Signals the end of an element in namespace mode.

The name parameter contains the name of the element type, just as with the startElementNS event.
Overrides:
_xmlplus.sax.saxutils.XMLGenerator.endElementNS (inherited documentation)

processingInstruction(self, target, data)

Receive notification of a processing instruction.

The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element.

A SAX parser should never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.
Overrides:
_xmlplus.sax.saxutils.XMLGenerator.processingInstruction (inherited documentation)

startDocument(self)

Receive notification of the beginning of a document.

The SAX parser will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).
Overrides:
_xmlplus.sax.saxutils.XMLGenerator.startDocument (inherited documentation)

startElementNS(self, name, qname, attrs)

Signals the start of an element in namespace mode.

The name parameter contains the name of the element type as a (uri, localname) tuple, the qname parameter the raw XML 1.0 name used in the source document, and the attrs parameter holds an instance of the Attributes class containing the attributes of the element.

The uri part of the name tuple is None for elements which have no namespace.
Overrides:
_xmlplus.sax.saxutils.XMLGenerator.startElementNS (inherited documentation)

Generated by Epydoc 2.1 on Tue May 22 18:09:00 2007 http://epydoc.sf.net