Parse the input data a record at a time
Methods
|
|
__init__
__str__
close
copy
parse
parseFile
parseString
|
|
__init__
|
__init__ (
self,
format_name,
attrs,
record_tagtable,
(,
make_reader,
reader_args=(),
)
parse the input data a record at a time
format_name - XML tag name for the whole data file
record_tagtable - mxTexTools tag table for each record
want_groupref_names - flag to say if the match_group table needs to
be reset (will disappear with better support from mxTextTools)
make_reader - callable object which creates a RecordReader; first
parameter will be an input file object
reader_args - optional arguments to pass to make_reader after the
input file object
|
|
__str__
|
__str__ ( self )
|
|
close
|
close ( self )
|
|
copy
|
copy ( self )
|
|
parse
|
parse ( self, source )
parse using the URL or file handle
|
|
parseFile
|
parseFile ( self, fileobj )
parse using the input file object
XXX will be removed with the switch to Python 2.0, where parse()
takes an InputSource
|
|
parseString
|
parseString ( self, s )
parse using the given string
XXX will be removed with the switch to Python 2.0, where parse()
takes an InputSource
|
|