Function resolve_xml_includes

Source
pub fn resolve_xml_includes(file_path: &Path) -> Result<String, IncludeError>
Expand description

Merge includes found in an XML file and return the result as a string.

The includes are resolved recursively, only “xi:includes” elements are considered.

§Arguments

  • file_path - the path to the XML file to resolve xi:include elements in

§Returns

The resolved XML content as a string.