blob: 8b2191bf1a9f37c2dcac4f39be48a1bf3121b2bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "pugixml.hpp"
#include <iostream>
int main()
{
// tag::code[]
pugi::xml_document doc;
pugi::xml_parse_result result = doc.load_file("tree.xml");
std::cout << "Load result: " << result.description() << ", mesh name: " << doc.child("mesh").attribute("name").value() << std::endl;
// end::code[]
}
// vim:et
|