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]
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 = '{}'
  XINCLUDE_INCLUDE = '{}include'
  XINCLUDE_FALLBACK = '{}fallback'
  __package__ = 'lxml'