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
  LimitedRecursiveIncludeError
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, max_depth=6) source code
 
_include(elem, loader=None, base_url=None, max_depth=6, _parent_hrefs=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'
  XINCLUDE_ITER_TAG = '{http://www.w3.org/2001/XInclude}*'
  DEFAULT_MAX_INCLUSION_DEPTH = 6
  __package__ = 'lxml'