开发者

Removing RapidXML newlines & whitespace in output

How can I prevent RapidXML from adding tabs and newlines between element tags when calling the print(...) function to outpu开发者_JS百科t XML?


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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜