inline-xml
Inline XML data directly into your Rust code.
Example
use xml;
Syntax issues
Since Rust will tokenize the input and proc_macro_span
is not stabilized,
whitespace will be discarded and therefore inline_xml has to guess about where to put whitespace when printing.
TODO
- Eliminate usage of
Content::Nested
completely - More documentation
- Mention, in the docs, that struct Xml can take multiple tags
- Make struct Tag an instance of trait ToXml
- Arg -> Attr, args -> attrs
- Fix XML injection for attributes
- Fix interpretation of floating point literals
- Somehow produce XML & DTD declarations (probably as a format arg)