summaryrefslogtreecommitdiffstats
path: root/src/pugixml-test.cpp
blob: aba3552d80a56841330206de4be236ae43c5499a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * This file is part of MXE. See LICENSE.md for licensing information.
 */

#include <string>
#include <pugixml.hpp>

int main(int argc, char *argv[])
{
    (void)argc;
    (void)argv;
    pugi::xml_document doc;
    std::string source( "<node><child1 attr1='value1' attr2='value2'/><child2 attr1='value1'>test</child2></node>");
    pugi::xml_parse_result result = doc.load_string(source.c_str(), source.size());
    return result ? 0 : 1;
}