Parsing XML Attributes with Boost
问题 I would like to share with you an issue I'm having while trying to process some attributes from XML elements in C++ with Boost libraries (version 1.52.0). Given the following code: #define ATTR_SET ".<xmlattr>" #define XML_PATH1 "./pets.xml" #include <iostream> #include <string> #include <boost/foreach.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> using namespace std; using namespace boost; using namespace boost::property_tree; const ptree& empty