Table of Contents

Class: _IndexerHandler Bio/Medline/NLMMedlineXML.py

Handles the results from the nlmmedline_format. Saves the begin and end of each record as an offset from the beginning of the parse.

Base Classes   
handler.ContentHandler
Methods   
__init__
characters
endElement
startElement
  __init__ 
__init__ ( self,  found_citation_fn )

_IndexerHandler(found_citation_fn)

found_citation_fn is called with the PMID, MedlineID, start, end where start and end are offsets from the beginning of the parse, with slice semantics.

  characters 
characters ( self,  content )

  endElement 
endElement ( self,  name )

Exceptions   
SyntaxError, "Elements not nested: %s" % name
SyntaxError, "I couldn't find an id: %s %s" %( self._pmid, self._medline_id )
  startElement 
startElement (
        self,
        name,
        attrs,
        )

Exceptions   
SyntaxError, "Found MedlineCitation, but already in one."

Table of Contents

This document was automatically generated on Mon Jul 1 12:02:51 2002 by HappyDoc version 2.0.1