Add xml-stylesheet processing instructions to boost property_tree

前端 未结 2 1879
忘掉有多难
忘掉有多难 2020-12-07 04:29

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 out

2条回答
  •  执念已碎
    2020-12-07 05:01

    My hack is to use the writer settings:

    boost::property_tree::xml_writer_settings settings('\t', 1, "utf-8\"?>\n

    Result:

    
    
    

提交回复
热议问题