Package lxml :: Module ElementInclude
[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
  FatalIncludeError
Functions
 
default_loader(href, parse, encoding=None) source code
 
include(elem, loader=None, base_url=None) source code
Variables
  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'