I am using boost/property_tree to create an XML file. Unfortunately I cannot figure out how to add xml-stylesheet processing instructions to the file.
Desirable output:
<?xml version="1.0" encoding="utf-8"?> <-- This is added automatically
<?xml-stylesheet type="text/xsl" href="report.xsl"?> <-- How to add this line
<report>
...
</report>
Is that possible with boost/property_tree/ptree?
See Question&Answers more detail:os