comparison dep/pugixml/docs/samples/load_file.cpp @ 57:3c802806b74a

*: merge
author Paper <mrpapersonic@gmail.com>
date Thu, 28 Sep 2023 13:09:11 -0400
parents d10b6c6b432e
children
comparison
equal deleted inserted replaced
56:6ff7aabeb9d7 57:3c802806b74a
1 #include "pugixml.hpp"
2
3 #include <iostream>
4
5 int main()
6 {
7 // tag::code[]
8 pugi::xml_document doc;
9
10 pugi::xml_parse_result result = doc.load_file("tree.xml");
11
12 std::cout << "Load result: " << result.description() << ", mesh name: " << doc.child("mesh").attribute("name").value() << std::endl;
13 // end::code[]
14 }
15
16 // vim:et