I am using boost::property_tree::xml_parser to create an xml-file. Now I also need to add comments to the xml-file.
I've done some research and found out that comments are not allowed in JSON, and thus also not supported by the boost::property_tree::json_parser...
Furthermore I found out, that there is a no_comments flag for skipping xml-comments when reading an xml-file...
But what about adding xml-comments to a file?