开发者

Removing RapidXML newlines & whitespace in output

开发者 https://www.devze.com 2023-01-12 05:54 出处:网络
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:

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

精彩评论

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