Home | Trees | Index | Help |
|
---|
Package twisted :: Package web :: Module microdom :: Class MicroDOMParser |
|
BaseProtocol
--+ |Protocol
--+ |XMLParser
--+ | MicroDOMParser
Method Summary | |
---|---|
__init__(self,
beExtremelyLenient,
caseInsensitive,
preserveCase,
soonClosers,
laterClosers)
| |
_fixScriptElement(self,
el)
| |
_getparent(self)
| |
_gotStandalone(self,
factory,
data)
| |
connectionLost(self,
reason)
| |
Encountered CDATA | |
gotComment(self,
data)
| |
Encountered DOCTYPE | |
Encountered mnemonic entity reference | |
Encountered closing tag | |
Encountered an opening tag. | |
Encountered text | |
shouldPreserveSpace(self)
| |
Inherited from XMLParser | |
Return a dictionary of begin, do, end state function tuples | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Called when a connection is made. | |
Called whenever data is received. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Get the line number and column of the last character parsed | |
Inherited from Protocol | |
(Deprecated) | |
Inherited from BaseProtocol | |
Make a connection to a transport and a server. |
Class Variable Summary | |
---|---|
dict |
_XMLParser__stateTable = {'comment': (<bound method Micr...
|
SRE_Pattern |
COMMENT = \s*/[/\*]\s*
|
dict |
laterClosers = {'head': ['body'], 'option': ['option'], ...
|
list |
soonClosers = ['area', 'link', 'br', 'img', 'hr', 'input...
|
Inherited from XMLParser | |
NoneType |
_prepend = None |
str |
attrname = ''
|
str |
attrval = ''
|
int |
beExtremelyLenient = 0 |
NoneType |
encodings = None |
str |
filename = '<xml />'
|
NoneType |
state = None |
Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
Method Details |
---|
gotCData(self, cdata)Encountered CDATA Default behaviour is to call the gotText method
|
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.
|
Class Variable Details |
---|
COMMENT
|
laterClosers
|
soonClosers
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:07:56 2004 | http://epydoc.sf.net |