2001-05-10 22:17:55 +08:00
|
|
|
/*
|
|
|
|
* testCatalog.c : a small tester program for Catalog loading
|
|
|
|
*
|
|
|
|
* See Copyright for the status of this software.
|
|
|
|
*
|
2001-06-24 20:13:24 +08:00
|
|
|
* daniel@veillard.com
|
2001-05-10 22:17:55 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "libxml.h"
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include <libxml/xmlmemory.h>
|
|
|
|
#include <libxml/uri.h>
|
|
|
|
#include <libxml/catalog.h>
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
#ifdef LIBXML_CATALOG_ENABLED
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 1; i < argc; i++)
|
|
|
|
xmlLoadCatalog(argv[i]);
|
|
|
|
|
|
|
|
xmlCatalogDump(stdout);
|
|
|
|
xmlCatalogCleanup();
|
2001-06-21 19:20:21 +08:00
|
|
|
xmlCleanupParser();
|
2001-05-10 22:17:55 +08:00
|
|
|
xmlMemoryDump();
|
|
|
|
#endif
|
|
|
|
return(0);
|
|
|
|
}
|