Iterator interface to move over a file of CDD entries one at a time.
Iterator expects a handle to an sgml file. It extracts data bracketed
by specified tag pairs, then removes blank lines and leading white space.
The parser operates on the filtered data.
Methods
|
|
__init__
next
|
|
__init__
|
__init__ (
self,
handle,
parser=None,
)
Initialize the iterator.
Arguments:
o handle - A handle with CDD entries to iterate through.
o parser - An optional parser to pass the entries through before
returning them. If None, then the raw entry will be returned.
|
|
next
|
next ( self )
Return the next CDD record from the handle.
Will return None if we ran out of records.
|
|