Package lxml :: Module sax

[hide private]
[frames] | no frames]

# Module sax

source code

SAX-based adapter to copy trees from/to the Python standard library.

Use the ElementTreeContentHandler class to build an ElementTree from SAX events.

Use the ElementTreeProducer class or the saxify() function to fire the SAX events of an ElementTree against a SAX ContentHandler.

See http://codespeak.net/lxml/sax.html

Classes | [hide private]

| SaxError General SAX error.
| ElementTreeContentHandler Build an lxml ElementTree from SAX events.
| ElementTreeProducer Produces SAX events for an element and children.

Functions | [hide private]

_getNsTag(tag) | source code

saxify(element_or_tree, content_handler) One-shot helper to generate SAX events from an XML tree and fire them against a SAX ContentHandler. | source code

Variables | [hide private]

| __package__ = ``'``lxml``'``