Is there any good way (and a simple way too) using Boost to read and write XML files?
I can\'t seem to find any simple sample to read XML files using Boost. Can you
It would appear that boost serialization can read from and write-to archives in XML, if that's sufficient for your purposes.
Easier XML with Boost
There is a GSoC proposed work to improve the existing proposal of Boost.XML : https://github.com/stefanseefeld/boost.xml but as Andrzej proposed Boost.PropertyTree is nice for this task. Depending naturally of the xml size and the validation support needed.
There is also a library which was recently proposed on the Boost Mailing List : http://www.codesynthesis.com/projects/libstudxml/doc/intro.xhtml
Well there is no specific library in boost for XML parsing, but there are lots of alternatives, here are a couple: libxml, Xerces, Expat
Of course you could use some of the other libraries in boost to aid you in making your own library, but that will probably be quite an undertaking.
And here is a whole article on the subject by IBM.
Take a look at Arabica
What about boost.spirit?
Here, they show a "Mini XML" parser
TinyXML is probably a good choice. As for Boost:
There is the Property_Tree library in the Boost Repository. It has been accepted, but support seems to be lacking at the moment (EDIT: Property_Tree is now part of Boost since version 1.41, read the documentation regarding its XML functionality).
Daniel Nuffer has implemented an xml parser for Boost Spirit.