0

If the value of node in the xml is null, when we print the xml node, the node has no start tag, but only the end tag. For example:

xml_document<char> doc;
doc.append_node(doc.allocate_node(rapidxml::node_element, "mynode", ""));
ofstream ofs("test.xml");
ofs<<doc;

the content of test.xml is:

</mynode>

the expected content of test.xml is

<mynode></mynode>

Is this a bug of rapidxml

Billy ONeal
  • 104,103
  • 58
  • 317
  • 552
gefu
  • 1

1 Answers1

0

I do not know what version of RapidXml you're using. I've used few days ago the latest and works fine... this problem was fixed or it was a particular case of yours :)

Andry
  • 16,172
  • 27
  • 138
  • 246