Home | Trees | Index | Help |
|
---|
Module sgmllib :: Class SGMLParser |
|
ParserBase
--+
|
SGMLParser
Stripper
Method Summary | |
---|---|
Initialize and reset this instance. | |
Handle the remaining data. | |
error(self,
message)
| |
Feed some data to the parser. | |
finish_endtag(self,
tag)
| |
finish_shorttag(self,
tag,
data)
| |
finish_starttag(self,
tag,
attrs)
| |
get_starttag_text(self)
| |
goahead(self,
end)
| |
Handle character reference, no need to override. | |
handle_comment(self,
data)
| |
handle_data(self,
data)
| |
handle_decl(self,
decl)
| |
handle_endtag(self,
tag,
method)
| |
Handle entity references. | |
handle_pi(self,
data)
| |
handle_starttag(self,
tag,
method,
attrs)
| |
parse_endtag(self,
i)
| |
parse_pi(self,
i)
| |
parse_starttag(self,
i)
| |
report_unbalanced(self,
tag)
| |
Reset this instance. | |
Enter literal mode (CDATA). | |
Enter literal mode (CDATA) till EOF. | |
unknown_charref(self,
ref)
| |
unknown_endtag(self,
tag)
| |
unknown_entityref(self,
ref)
| |
unknown_starttag(self,
tag,
attrs)
| |
Inherited from ParserBase | |
Return current line number and offset. | |
| |
| |
| |
| |
|
Class Variable Summary | |
---|---|
dict |
entitydefs = {'amp': '&', 'lt': '<', 'gt': '>', 'apos': ...
|
Method Details |
---|
__init__(self,
verbose=0)
Initialize and reset this instance.
|
close(self)Handle the remaining data. |
feed(self, data)Feed some data to the parser. Call this as often as you want, with as little or as much text as you want (may include ' '). (This just saves the text, all the processing is done by goahead().) |
handle_charref(self, name)Handle character reference, no need to override. |
handle_entityref(self, name)Handle entity references. There should be no need to override this method; it can be tailored by setting up the self.entitydefs mapping appropriately. |
reset(self)Reset this instance. Loses all unprocessed data.
|
setliteral(self, *args)Enter literal mode (CDATA). Intended for derived classes only. |
setnomoretags(self)Enter literal mode (CDATA) till EOF. Intended for derived classes only. |
Class Variable Details |
---|
entitydefs
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Feb 7 21:43:57 2006 | http://epydoc.sf.net |