Mercurial > minori
comparison dep/pugixml/docs/samples/load_file.cpp @ 367:8d45d892be88 default tip
*: instead of pugixml, use Qt XML features
this means we have one extra Qt dependency though...
author | Paper <paper@tflc.us> |
---|---|
date | Sun, 17 Nov 2024 22:55:47 -0500 |
parents | 886f66775f31 |
children |
comparison
equal
deleted
inserted
replaced
366:886f66775f31 | 367:8d45d892be88 |
---|---|
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 |