I'm using boost 1.51 and have something like this:
I was hoping to get
But I only get
Using boost::property_tree, is it possible to create an xml file with an attribute name containing a '.' character or do I need to look elsewhere?
You have to use a separator other than the default
.. Try this,
boost::property_tree::ptree some_tree; some_tree.put(ptree::path("hello/world/<xmlattr>/foo.bar", '/'),"4711");