|  | Home | Libraries | People | FAQ | More | 
boost::property_tree::xml_parser::read_xml
// In header: <boost/property_tree/xml_parser.hpp> template<typename Ptree> void read_xml(const std::string & filename, Ptree & pt, int flags = 0, const std::locale & loc = std::locale());
Reads XML from a file using the given locale and translates it to property tree.
| ![[Note]](../../../../../doc/src/images/note.png) | Note | 
|---|---|
| Clears existing contents of property tree. In case of error the property tree unmodified. XML attributes are placed under keys named  | 
| Parameters: | 
 | ||||||||
| Throws: | xml_parser_error In case of error deserializing the property tree. |