A short program to learn all stag feature

With this example, we see how to deal with tag.

#include <iostream>
#include <ximol/ximol.hpp>

using namespace std;
using namespace ximol;

// main function
int main()
    double d1=3.01,d2=4.1; // some data

    xstringstream xss; // an output buffer for the example

    // open the 'Example' tag
    xss << xml::stag("Example");
    // close the right tag
    xss << xml::etag();  

    return 0;

Donate to the XiMoL project SourceForge.net Logo If you have any questions about XiMoL, you could write to tournois@users.sourceforge.net.