Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 1 | /* |
| 2 | * testCatalog.c : a small tester program for Catalog loading |
| 3 | * |
| 4 | * See Copyright for the status of this software. |
| 5 | * |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 6 | * daniel@veillard.com |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include "libxml.h" |
| 10 | |
| 11 | #include <string.h> |
| 12 | #include <stdio.h> |
| 13 | #include <stdarg.h> |
| 14 | |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 15 | #include <libxml/xmlmemory.h> |
| 16 | #include <libxml/uri.h> |
| 17 | #include <libxml/catalog.h> |
Darin Adler | 699613b | 2001-07-27 22:47:14 +0000 | [diff] [blame] | 18 | #include <libxml/parser.h> |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 19 | |
| 20 | int 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 Veillard | 017b108 | 2001-06-21 11:20:21 +0000 | [diff] [blame] | 29 | xmlCleanupParser(); |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 30 | xmlMemoryDump(); |
| 31 | #endif |
| 32 | return(0); |
| 33 | } |