#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/foreach.hpp>

int main() {
    using boost::property_tree::ptree;
    std::string xml_str = 
    "<main>"
      "<owner>Matt</owner>"
      "<cats>"
        "<cat>Scarface Max</cat>"
        "<cat>Moose</cat>"
        "<cat>Snowball</cat>"
        "<cat>Powerball</cat>"
        "<cat>Miss Pudge</cat>"
        "<cat>Needlenose</cat>"
        "<cat>Sweety Pie</cat>"
        "<cat>Peacey</cat>"
        "<cat>Funnyface</cat>"
      "</cats>"
    "</main>";
    ptree pt;
    std::stringstream ss; ss << xml_str;
    read_xml(ss, pt);
    
	return 0;
}