标签: xml rapidxml
在调用print(...)函数输出XML时,如何防止RapidXML在元素标记之间添加制表符和换行符?
答案 0 :(得分:0)
解决了print_no_indenting标志:
print_no_indenting
char *end = print(buffer, _doc, rapidxml::print_no_indenting); *end = 0;
或:
string s; print(back_inserter(s), _doc, rapidxml::print_no_indenting);