Handles the results from the nlmmedline_format. Saves the begin
and end of each record as an offset from the beginning of the parse.
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."
|
|
|