# `ogrim`: macro for building XML from inline XML [CI status of main](https://github.com/elan-ev/ogrim/actions/workflows/ci.yml) [Crates.io Version](https://crates.io/crates/ogrim) [docs.rs](https://docs.rs/ogrim) XML builder macro letting you write XML inside Rust code (similar to `serde_json::json!`). Features: - Value interpolation (with escaping of course) - Interpolate lists or optional attributes with `` - Auto close tags for convenience (e.g. `"body"`) - Minimal memory allocations (only the `String` being built allocates) - Choice between minimized and pretty XML ```rust use ogrim::xml; let cat_name = "Tony"; let doc = xml!( {cat_name} "Barbara" ); println!("{}", doc.as_str()); // Print XML ``` See [**the documentation**](https://docs.rs/ogrim) for more information and examples. --- ## License Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.