Home | Trees | Index | Help |
|
---|
|
Classes | |
---|---|
StreamHandler |
Base class for stream handler. |
StreamReader |
A simple push-parser interface for XML streams. |
Exceptions | |
---|---|
StreamParseError |
Exception raised when invalid XML is being processed. |
Function Summary | |
---|---|
libxml2.xmlNs |
Namespace of an XML node. |
unicode |
Return namespace URI of an XML node. |
Remove control characters (not allowed in XML) from a string. | |
Replace namespaces in a whole subtree. | |
string |
Serialize an XML element making sure the result is sane. |
Iterate over sibling XML elements. | |
Iterate over sibling XML elements. | |
Iterate over sibling XML nodes. |
Variable Summary | |
---|---|
str |
__revision__ = '$Id: xmlextra.py,v 1.15 2004/10/11 18:33...
|
SRE_Pattern |
bad_nsdef_replace_re = ^([^<]*<[^><]*\s+)(xmlns=(("[^"]*...
|
xmlDoc |
common_doc = <xmlDoc (None) object at 0x407b5fac>
|
xmlNs |
common_ns = <xmlNs (None) object at 0x407bb08c>
|
str |
COMMON_NS = 'http://pyxmpp.jabberstudio.org/xmlns/common...
|
xmlNode |
common_root = <xmlNode (root) object at 0x407bb06c>
|
SRE_Pattern |
evil_characters_re = [\000-\010\013\014\016-\037]
|
str |
utf8_replacement_char = '\xef\xbf\xbd'
|
libxml2
,
re
,
sys
,
threading
error
pure_python
Function Details |
---|
get_node_ns(xmlnode)Namespace of an XML node.
|
get_node_ns_uri(xmlnode)Return namespace URI of an XML node.
|
remove_evil_characters(s)Remove control characters (not allowed in XML) from a string. |
replace_ns(node, old_ns, new_ns)Replace namespaces in a whole subtree. The old namespace declaration will be removed if present on the Both old_ns and new_ns may be None meaning no namespace set.
|
safe_serialize(xmlnode)Serialize an XML element making sure the result is sane. Remove control characters and invalid namespace declarations from the result string.
|
xml_element_iter(nodelist)Iterate over sibling XML elements. Non-element nodes will be skipped. Usually used to iterade over node's children like this: xml_node_iter(node.children)
|
xml_element_ns_iter(nodelist, ns_uri)Iterate over sibling XML elements. Only elements in the given namespace will be returned. Usually used to iterade over node's children like this: xml_node_iter(node.children)
|
xml_node_iter(nodelist)Iterate over sibling XML nodes. All types of nodes will be returned (not only the elements). Usually used to iterade over node's children like this: xml_node_iter(node.children)
|
Variable Details |
---|
__revision__
|
bad_nsdef_replace_re
|
common_doc
|
common_ns
|
COMMON_NS
|
common_root
|
evil_characters_re
|
utf8_replacement_char
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 26 17:57:35 2005 | http://epydoc.sf.net |