Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module sux :: Class XMLParser |
|
BaseProtocol
--+ |Protocol
--+ | XMLParser
MicroDOMParser
,
Sux0r
Method Summary | |
---|---|
begin_afterslash(self,
byte)
| |
begin_attrname(self,
byte)
| |
begin_attrval(self,
byte)
| |
begin_beforeeq(self,
byte)
| |
begin_bodydata(self,
byte)
| |
begin_comment(self,
byte)
| |
begin_doctype(self,
byte)
| |
begin_entityref(self,
byte)
| |
begin_expectcdata(self,
byte)
| |
begin_messyattr(self,
byte)
| |
begin_tagstart(self,
byte)
| |
(Deprecated) (inherited from Protocol )
| |
Called when the connection is shut down. (inherited from Protocol )
| |
Called when a connection is made. | |
Called whenever data is received. | |
do_afterslash(self,
byte)
| |
do_attrname(self,
byte)
| |
do_attrs(self,
byte)
| |
do_attrval(self,
byte)
| |
do_beforeattrval(self,
byte)
| |
do_beforeeq(self,
byte)
| |
do_begin(self,
byte)
| |
do_bodydata(self,
byte)
| |
do_cdata(self,
byte)
| |
do_comment(self,
byte)
| |
do_doctype(self,
byte)
| |
do_entityref(self,
byte)
| |
do_expectcdata(self,
byte)
| |
do_messyattr(self,
byte)
| |
do_tagstart(self,
byte)
| |
do_waitforgt(self,
byte)
| |
end_attrval(self)
| |
end_bodydata(self)
| |
end_cdata(self)
| |
end_doctype(self)
| |
end_entityref(self)
| |
end_messyattr(self)
| |
Encountered CDATA | |
Encountered comment. | |
Encountered DOCTYPE | |
Encountered mnemonic entity reference | |
Encountered closing tag | |
Encountered an opening tag. | |
Encountered text | |
Make a connection to a transport and a server. (inherited from BaseProtocol )
| |
Get the line number and column of the last character parsed | |
_parseError(self,
message)
|
Class Variable Summary | |
---|---|
str |
attrname
|
str |
attrval
|
int |
beExtremelyLenient
|
str |
filename
|
NoneType |
state
|
Method Details |
---|
connectionMade(self)Called when a connection is made. This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
|
dataReceived(self, data)Called whenever data is received. Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
|
gotCData(self, cdata)Encountered CDATA Default behaviour is to call the gotText method |
gotComment(self, comment)Encountered comment. Default behaviour is to ignore. |
gotDoctype(self, doctype)Encountered DOCTYPE This is really grotty: it basically just gives you everything between '<!DOCTYPE' and '>' as an argument. |
gotEntityReference(self, entityRef)Encountered mnemonic entity reference Default behaviour is to print. |
gotTagEnd(self, name)Encountered closing tag Default behaviour is to print. |
gotTagStart(self, name, attributes)Encountered an opening tag. Default behaviour is to print. |
gotText(self, data)Encountered text Default behaviour is to print. |
saveMark(self)Get the line number and column of the last character parsed |
Class Variable Details |
---|
attrname
|
attrval
|
beExtremelyLenient
|
filename
|
state
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:34 2003 | http://epydoc.sf.net |