xerces-c

Read Write XML File In C++ [closed]

独自空忆成欢 提交于 2019-11-27 05:50:05
问题 I researched a lot on how to read and write ( update ) a simple .xml file in C++ but i am not able to develop the code for it. I work and installed xerces-c library that I think is needed to use DOM or SAX2 parser to read it. Please someone can help to write the code for it. A sample code to do this will be quite helpful. Thanks & best Regards, Adarsh Sharma 回答1: I recommend MSXML. It may look complicated, but it's nice and easy when you get used to it. Here's a sample: input.xml: <?xml