MSXML from C++ - pretty print / indent newly created documents

前端 未结 5 1250
陌清茗
陌清茗 2020-12-31 17:07

I\'m writing out XML files using the MSXML parser, with a wrapper I downloaded from here: http://www.codeproject.com/KB/XML/JW_CXml.aspx. Works great except that when I crea

5条回答
  •  遥遥无期
    2020-12-31 17:51

    Unless the library has a format option then the only other way is to use XSLT, or an external pretty printer ( I think htmltidy can also do xml) There doen't seem to be an option in the codeproject lib but you can specify an XSLT stylesheet to MSXML.

提交回复
热议问题