| 1416 | } |
| 1417 | |
| 1418 | inline void parse_xml ( |
| 1419 | std::istream& in, |
| 1420 | document_handler& dh, |
| 1421 | error_handler& eh |
| 1422 | ) |
| 1423 | { |
| 1424 | if (!in) |
| 1425 | throw xml_parse_error("Unexpected end of file during xml parsing."); |
| 1426 | xml_parser parser; |
| 1427 | parser.add_document_handler(dh); |
| 1428 | parser.add_error_handler(eh); |
| 1429 | parser.parse(in); |
| 1430 | } |
| 1431 | |
| 1432 | inline void parse_xml ( |
| 1433 | std::istream& in, |
no test coverage detected