2009-12-08 19:44:50 +03:00
|
|
|
#include "testXMLParser.h"
|
|
|
|
|
|
|
|
#include "cmXMLParser.h"
|
|
|
|
|
2015-08-20 23:02:20 +03:00
|
|
|
#include <iostream>
|
2009-12-08 19:44:50 +03:00
|
|
|
|
2016-08-17 02:49:57 +03:00
|
|
|
int testXMLParser(int /*unused*/, char* /*unused*/ [])
|
2009-12-08 19:44:50 +03:00
|
|
|
{
|
|
|
|
// TODO: Derive from parser and check attributes.
|
|
|
|
cmXMLParser parser;
|
2016-05-16 17:34:04 +03:00
|
|
|
if (!parser.ParseFile(SOURCE_DIR "/testXMLParser.xml")) {
|
2015-08-20 23:02:20 +03:00
|
|
|
std::cerr << "cmXMLParser failed!" << std::endl;
|
2009-12-08 19:44:50 +03:00
|
|
|
return 1;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2009-12-08 19:44:50 +03:00
|
|
|
return 0;
|
|
|
|
}
|