read_xml() throw exception due to lacking of double quotes

bialspeatuipt

New Member
I use boost::property_tree object to parse xml like this:\[code\]<?xml version="1.0" encoding="utf-8"?><root> <node attr="attr_str"/></root>\[/code\]When I call read_xml() to parse this content, it works well. But if I remove those double quotes around the attr attribute like this:\[code\]<?xml version="1.0" encoding="utf-8"?><root> <node attr=attr_str/></root>\[/code\]It throw the xml_parse_error exception.Does any flags can be set to ignore the checking of double quotes?
 
Back
Top