XML Template I/O
XML Template I/O
XML Template I/O allows data-centric XML interaction by filling in empty Locations in a textual XML template. Locations are referenced using XPath and may be re-used. XMLTIO directly supports conversion to/from primitive types such as int, float, strings etc. and support for user-defined types can be added transparently.
- Introductory tutorials on creating and reading XML.
- (slightly more) advanced use.
- API documentation.
Showcase
Just to give an impression of how easy it is to use XMLTIO, a short XML fragment:
<?xml version="1.0" encoding="1.0"?> <foo/>
a simple XPath expression later...
Location root(xml, "/");
root[XPath("foo")] = 23;
here we are:
<?xml version="1.0" encoding="1.0"?> <foo>23</foo>




