Trying to get the content from the xml file using boost xml parser using c++..
opencv.xml
<opencv_storage>
<labels type_id="opencv-matrix">
<data>0 0 0 0 1 1 0 0</data>
</labels>
</opencv_storage>
C++ Code Snippet
using boost::property_tree::ptree;
ptree pt;
boost::property_tree::read_xml("opencv.xml", pt);
std::string m_file = pt.get<std::string>("opencv_storage.labels type_id=\"opencv-matrix\".data");
std::cout<<"m_file "<<m_file<<std::endl;
While executing, the program throws an exception :
No such node (opencv_storage.labels type_id="opencv-matrix".data)
I doubt, a white space prevails between labels and type_id
Thanks in advance, any help would be appreciated, since I am trying to get used to boost.