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
|
|
|
|
|
|
|
int testXMLParser(int, char*[])
|
|
|
|
{
|
|
|
|
// TODO: Derive from parser and check attributes.
|
|
|
|
cmXMLParser parser;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|