Package Bio :: Package Mindy :: Module XPath :: Class GrabXPathNodes
[hide private]
[frames] | no frames]

Class GrabXPathNodes

source code

xml.sax.handler.ContentHandler --+
                                 |
                                GrabXPathNodes

Instance Methods [hide private]
 
__init__(self, extractinfo) source code
 
uses_tags(self) source code
 
startDocument(self)
Receive notification of the beginning of a document.
source code
 
startElement(self, tag, attrs)
Signals the start of an element in non-namespace mode.
source code
 
characters(self, s)
Receive notification of character data.
source code
 
save_info(self, needed) source code
 
get_info(self) source code
 
endElement(self, tag)
Signals the end of an element in non-namespace mode.
source code

Inherited from xml.sax.handler.ContentHandler: endDocument, endElementNS, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElementNS, startPrefixMapping

Method Details [hide private]

__init__(self, extractinfo)
(Constructor)

source code 
Overrides: xml.sax.handler.ContentHandler.__init__

startDocument(self)

source code 

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: xml.sax.handler.ContentHandler.startDocument
(inherited documentation)

startElement(self, tag, attrs)

source code 

Signals the start of an element in non-namespace mode.

The name parameter contains the raw XML 1.0 name of the element type as a string and the attrs parameter holds an instance of the Attributes class containing the attributes of the element.

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

characters(self, s)

source code 

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: xml.sax.handler.ContentHandler.characters
(inherited documentation)

endElement(self, tag)

source code 

Signals the end of an element in non-namespace mode.

The name parameter contains the name of the element type, just as with the startElement event.

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