#xml #preprocessor #include

xml-include

Small utility library for resolving XML includes

1 unstable release

0.1.0 Oct 16, 2024

#2552 in Parser implementations

Download history 169/week @ 2024-10-14 8/week @ 2024-10-21

177 downloads per month
Used in sbe-codegen

MIT license

8KB
107 lines

xml-include

Crates.io Documentation Build status License: MIT

xml-include is library to pre-process XML include statements and merge them into a single XML file.

Usage

use std::path::PathBuf;
use xml_include::resolve_xml_includes;

fn main() {
    let input_file = PathBuf::from("tests/examples/TradingApi.xml");
    let reference_file = PathBuf::from("tests/examples/TradingApi.ref.xml");

    let resolved_content = resolve_xml_includes(&input_file).unwrap();
}

Dependencies

~0.5–1MB
~21K SLoC