我正在使用boost/property_tree創建一個XML文件。 不幸的是我不知道如何將xml樣式表處理指令添加到文件中。添加xml樣式表處理指令來提升property_tree
理想的輸出:
<?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>
那是可能的升壓/ property_tree/ptree中?
注意'write_xml_element'爲[不執行記錄API的一部分(HTTP:/ /www.boost.org/doc/libs/1_57_0/doc/html/property_tree/reference.html#header.boost.property_tree.xml_parser_hpp),並且可能會隨時改變或不改變。儘管甜得破解。 +1 – sehe