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

__pyx_unpickle_ElementTreeProducer(...) | source code

__reduce_cython__(...) | source code

__setstate_cython__(...) | source code

Variables | [hide private]

| __package__ = `None` hash(x)
| __pyx_capi__ = ``{``'``_getNsTag``'``:` <capsule object "PyObject *(PyObj`...``
| __test__ = ``{``}``

Variables Details | [hide private]

### __pyx_capi__

Value:

      {'_getNsTag': <capsule object "PyObject *(PyObject *)" at 0x7fa92abcd6
      f0>}