tags:

views:

10

answers:

1

How can I prevent RapidXML from adding tabs and newlines between element tags when calling the print(...) function to output XML?

A: 

Solved with the print_no_indenting flag:

char *end = print(buffer, _doc, rapidxml::print_no_indenting);
*end = 0;

or:

string s;
print(back_inserter(s), _doc, rapidxml::print_no_indenting);
FreshCode