如果xml中node的值为null,当我们打印xml节点时,该节点没有开始标签,只有结束标签。例如:
xml_document<char> doc;
doc.append_node(doc.allocate_node(rapidxml::node_element, "mynode", ""));
ofstream ofs("test.xml");
ofs<<doc;
test.xml 的内容是:
</mynode>
test.xml 的预期内容是
<mynode></mynode>
这是 rapidxml 的错误吗