blob: d7bc4c72852af4b337f027718e30b7f466097b8a [file] [log] [blame]
Daniel Veillarda7374592001-05-10 14:17:55 +00001/*
2 * testCatalog.c : a small tester program for Catalog loading
3 *
4 * See Copyright for the status of this software.
5 *
Daniel Veillardc5d64342001-06-24 12:13:24 +00006 * daniel@veillard.com
Daniel Veillarda7374592001-05-10 14:17:55 +00007 */
8
9#include "libxml.h"
10
11#include <string.h>
12#include <stdio.h>
13#include <stdarg.h>
14
Daniel Veillarda7374592001-05-10 14:17:55 +000015#include <libxml/xmlmemory.h>
16#include <libxml/uri.h>
17#include <libxml/catalog.h>
Darin Adler699613b2001-07-27 22:47:14 +000018#include <libxml/parser.h>
Daniel Veillarda7374592001-05-10 14:17:55 +000019
20int main(int argc, char **argv) {
21#ifdef LIBXML_CATALOG_ENABLED
22 int i;
23
24 for (i = 1; i < argc; i++)
25 xmlLoadCatalog(argv[i]);
26
27 xmlCatalogDump(stdout);
28 xmlCatalogCleanup();
Daniel Veillard017b1082001-06-21 11:20:21 +000029 xmlCleanupParser();
Daniel Veillarda7374592001-05-10 14:17:55 +000030 xmlMemoryDump();
31#endif
32 return(0);
33}