// Purely doxygen documentation // What follows is the docs for the examples. // I'd like the docs to be just before the // actual examples in xmltest.cpp, but I // can't seem to get doxygen to do that. It // would be a wonderful patch if anyone figures // it out. /** @page Example-1 Load an XML File * @dontinclude ./xmltest.cpp * Basic XML file loading. * The basic syntax to load an XML file from * disk and check for an error. (ErrorID() * will return 0 for no error.) * @skip example_1() * @until } */ /** @page Example-2 Parse an XML from char buffer * @dontinclude ./xmltest.cpp * Basic XML string parsing. * The basic syntax to parse an XML for * a char* and check for an error. (ErrorID() * will return 0 for no error.) * @skip example_2() * @until } */ /** @page Example-3 Get information out of XML @dontinclude ./xmltest.cpp In this example, we navigate a simple XML file, and read some interesting text. Note that this is examlpe doesn't use error checking; working code should check for null pointers when walking an XML tree, or use XMLHandle. (The XML is an excerpt from "dream.xml"). @skip example_3 @until "; The structure of the XML file is: