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