pantry/projects/pugixml.org/test.cpp
andrejrabcenko 355a995441 package.yml
test.cpp
	test.xml
2023-06-20 09:51:05 -04:00

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);
}