38
38
filepath = "example.xml";
40
40
// Parse the entire document in one go:
44
46
parser.set_substitute_entities(true); //
45
47
parser.parse_file(filepath);
47
50
catch(const xmlpp::exception& ex)
49
52
std::cout << "libxml++ exception: " << ex.what() << std::endl;
53
57
// Demonstrate incremental parsing, sometimes useful for network connections: