I\'ve been messing with using RapidXML on one of my projects. It was all going so well until I decided to use it for writing out xml. My code is more or less as follows:
And to eliminate the unused flags in the print_attributes funcion, remove the flags word in the prototype of that funcion
template
inline OutIt print_attributes(OutIt out, const xml_node *node, int);
and in its declaration
template
inline OutIt print_attributes(OutIt out, const xml_node *node, int)
{