#include "boost/algorithm/string/trim.hpp"
.
.
xmlChar *v = NULL;
cur = xmlDocGetRootElement(doc);
for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) {
v = xmlGetProp(cur, (const xmlChar *)"value");
trim((char*)v);
printf("%s",v);
}
这段代码没有编译,说 trim 没有定义,我试过 boost::trim 并没有帮助。谢谢。