= XML-Writer = ''Under construction'' == Library == Suggestion: [http://www.codeproject.com/vcpp/stl/simple_xmlwriter.asp Simple C++ class for XML writing] from Oboltus. Using this class is very very simple, it's all based on the stream operator <<. Here's an example: {{{ ofstream f("sample.xml"); XmlStream xml(f); xml << prolog() // write XML file declaration << tag("sample-tag") // root tag << tag("some-tag") // child tag << attr("int-attribute") << 123 << attr("double-attribute") << 456.789 << chardata() << "This is the text" << endtag() // close current tag << tag("empty-self-closed-tag") // sibling of << endtag() << tag() << "computed-name-tag" << attr("text-attr") << "a bit of text" << endtag() << tag("deep-tag") // deep enclosing << tag("sub-tag-2") << tag("sub-tag-3") << endtag("deep-tag"); // close all tags up to specified // you don't worry about closing all open tags! }}} Result: {{{ This is the text }}} The layout isn't optimal yet, but I'll try to fix that. = Misc = See [wiki:archive/XML-Loader] for an XML-Reader description