Home | Trees | Index | Help |
|
---|
Package pyxmpp :: Module xmlextra :: Class StreamHandler |
|
StreamBase
Base class for stream handler.
Method Summary | |
---|---|
__init__(self)
| |
Called when an error is encountered in the stream. | |
Called when the end tag of a direct child of the root element is encountered in the stream. | |
Called when the end tag of root element is encountered in the stream. | |
Called when the start tag of root element is encountered in the stream. |
Method Details |
---|
error(self, descr)Called when an error is encountered in the stream. :Parameters: - `descr`: description of the error :Types: - `descr`: `str` |
stanza(self, _unused, node)Called when the end tag of a direct child of the root element is encountered in the stream. Please note, that node will be removed from the document and freed after this method returns. If it is needed after that a copy must be made before the method returns. :Parameters: - `_unused`: the document being parsed. - `node`: the (complete) element being processed :Types: - `_unused`: `libxml2.xmlDoc` - `node`: `libxml2.xmlNode` |
stream_end(self, doc)Called when the end tag of root element is encountered in the stream. :Parameters: - `doc`: the document being parsed. :Types: - `doc`: `libxml2.xmlDoc` |
stream_start(self, doc)Called when the start tag of root element is encountered in the stream. :Parameters: - `doc`: the document being parsed. :Types: - `doc`: `libxml2.xmlDoc` |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 31 22:36:58 2006 | http://epydoc.sf.net |