Default loader. This loader reads an included resource from disk.
href
Resource reference.
parse
Parse mode. Either "xml" or "text".
encoding
Optional text encoding.
Returns:
The expanded resource. If the parse mode is "xml", this
is an ElementTree instance. If the parse mode is "text", this
is a Unicode string. If the loader fails, it can return None
or raise an IOError exception.
Optional resource loader. If omitted, it defaults
to default_loader. If given, it should be a callable
that implements the same interface as default_loader.
Raises FatalIncludeError:
If the function fails to include a given
resource, or if the tree contains malformed XInclude elements.