#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <libxml/xmlreader.h>
//#include "processFile.h"
int processFileFake(reader)
{
printf("im a fake function");
return 0;
}
int main(int argc, char **argv)
{
xmlTextReaderPtr reader=NULL; //pointer to the reader
int ret; //return code
reader = xmlReaderForFile("test.xml",NULL,0); //we open the file
if (reader != NULL) //aka we where able to open it
{
ret = processFileFake(reader);
if (ret == -1)
return EXIT_FAILURE;
}
else
{
printf("Unable to open test.xml\n");
}
printf("we are done\n");
xmlFreeTextReader(reader);
xmlCleanupParser();
return 0;
}