We do create an XML document containing nodes with child nodes and a value.
print_element_node checks whether the node to be printed has children (rapidxml_print.hpp line 266).
In this case the children are being processed and the value is being ignored.
We added a call to copy_and_expand_chars() similar to line 270 to this case and it worked fine. I'm not sure whether this is a good solution.
We are using RapidXml Version 1.13