blob: 519c51b7c4ba9bc4f67bfe01faafecf0bcdeef3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* This file is part of MXE.
* See index.html for further information.
*/
#include <iostream>
#include <tinyxml.h>
int main(int argc, char *argv[])
{
if (argc != 2) {
std::cerr << "Usage: tinyxml-test <xml-file>" << std::endl;
return 1;
}
std::string fpn = argv[1];
TiXmlDocument doc(fpn);
if (!doc.LoadFile()) {
std::cerr << "failed to load " << fpn << std::endl;
return 1;
}
return 0;
}
|