Some short examples of how to use the Boost property tree in order to read from and write to XML files.
Reading XML into a Boost property tree
Here’s how to read an example XML into the Boost property tree and traverse each of the the “item” sections within this XML, given that items may contain differing subsections:
For this XML example file “test1.xml” I use the following example XML taken from the Microsoft MSDN page:
(more…)
