Package lxml :: Module ElementInclude

[hide private]
[frames] | no frames]

# Module ElementInclude

source code

Limited XInclude support for the ElementTree package.

While lxml.etree has full support for XInclude (see `etree.ElementTree.xinclude()`), this module provides a simpler, pure Python, ElementTree compatible implementation that supports a simple form of custom URL resolvers.

Classes | [hide private]

| FatalIncludeError

Functions | [hide private]

default_loader(href, parse, encoding=None) | source code

_lxml_default_loader(href, parse, encoding=None, parser=None) | source code

_wrap_et_loader(loader) | source code

include(elem, loader=None, base_url=None) | source code

_include(elem, loader=None, _parent_hrefs=None, base_url=None) | source code

Variables | [hide private]

| XINCLUDE = ``'``{http://www.w3.org/2001/XInclude}``'``
| XINCLUDE_INCLUDE = ``'``{http://www.w3.org/2001/XInclude}include``'``
| XINCLUDE_FALLBACK = ``'``{http://www.w3.org/2001/XInclude}fallback``'``
| __package__ = ``'``lxml``'``