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