lxml.ElementInclude module — lxml documentation

# lxml.ElementInclude module

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.

exception `lxml.ElementInclude.` `FatalIncludeError`

  Bases: `lxml.etree.LxmlSyntaxError`

exception `lxml.ElementInclude.` `LimitedRecursiveIncludeError`

  Bases: `lxml.ElementInclude.FatalIncludeError`

`lxml.ElementInclude.` `_include`(elem, loader=None, base_url=None, max_depth=6, _parent_hrefs=None)

`lxml.ElementInclude.` `_lxml_default_loader`(href, parse, encoding=None, parser=None)

`lxml.ElementInclude.` `_wrap_et_loader`(loader)

`lxml.ElementInclude.` `default_loader`(href, parse, encoding=None)

`lxml.ElementInclude.` `include`(elem, loader=None, base_url=None, max_depth=6)