Methods
|
|
|
|
__init__
|
__init__ ( self, verbose=0 )
- Interface
initialize and reset this instance
|
|
close
|
close ( self )
- Interface
handle the remaining data
|
|
flush
|
flush ( self )
|
|
handle_cdata
|
handle_cdata ( self, data )
- Example
handle cdata, could be overridden
|
|
handle_comment
|
handle_comment ( self, data )
- Example
handle comment, could be overridden
|
|
handle_data
|
handle_data ( self, data )
- Example
handle data, should be overridden
|
|
handle_doctype
|
handle_doctype (
self,
tag,
pubid,
syslit,
data,
)
- Overridable
handle DOCTYPE
|
|
handle_entity
|
handle_entity (
self,
name,
strval,
pubid,
syslit,
ndata,
)
|
|
handle_proc
|
handle_proc (
self,
name,
data,
)
- Example
handle processing instructions, could be overridden
|
|
handle_xml
|
handle_xml (
self,
encoding,
standalone,
)
- Overridable
handle xml processing instruction
|
|
syntax_error
|
syntax_error ( self, message )
- Example
handle relatively harmless syntax errors, could be overridden
|
|
unknown_charref
|
unknown_charref ( self, ref )
|
|
unknown_endtag
|
unknown_endtag ( self, tag )
|
|
unknown_entityref
|
unknown_entityref ( self, ref )
|
|
unknown_starttag
|
unknown_starttag (
self,
tag,
attrs,
)
- To be overridden
handlers for unknown objects
|
|