mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
11 lines
276 B
C++
11 lines
276 B
C++
|
#include <pugixml.hpp>
|
||
|
#include <cassert>
|
||
|
#include <cstring>
|
||
|
|
||
|
int main(int argc, char *argv[]) {
|
||
|
pugi::xml_document doc;
|
||
|
pugi::xml_parse_result result = doc.load_file("test.xml");
|
||
|
|
||
|
assert(result);
|
||
|
assert(strcmp(doc.child_value("root"), "Hello world!") == 0);
|
||
|
}
|