version 1.18, 2000/10/25 19:26:53
|
version 1.19, 2000/11/03 13:45:27
|
Line 55
|
Line 55
|
#include <libxml/xpath.h> |
#include <libxml/xpath.h> |
#include <libxml/debugXML.h> |
#include <libxml/debugXML.h> |
#include <libxml/xmlerror.h> |
#include <libxml/xmlerror.h> |
|
#ifdef LIBXML_XINCLUDE_ENABLED |
|
#include <libxml/xinclude.h> |
|
#endif |
|
|
#ifdef LIBXML_DEBUG_ENABLED |
#ifdef LIBXML_DEBUG_ENABLED |
static int debug = 0; |
static int debug = 0; |
Line 81 static int memory = 0;
|
Line 84 static int memory = 0;
|
static int noblanks = 0; |
static int noblanks = 0; |
static int testIO = 0; |
static int testIO = 0; |
static char *encoding = NULL; |
static char *encoding = NULL; |
|
#ifdef LIBXML_XINCLUDE_ENABLED |
|
static int xinclude = 0; |
|
#endif |
|
|
extern int xmlDoValidityCheckingDefaultValue; |
extern int xmlDoValidityCheckingDefaultValue; |
extern int xmlGetWarningsDefaultValue; |
extern int xmlGetWarningsDefaultValue; |
Line 502 void parseAndPrintFile(char *filename) {
|
Line 508 void parseAndPrintFile(char *filename) {
|
return; |
return; |
} |
} |
|
|
|
#ifdef LIBXML_XINCLUDE_ENABLED |
|
xmlXIncludeProcess(doc); |
|
#endif |
|
|
#ifdef LIBXML_DEBUG_ENABLED |
#ifdef LIBXML_DEBUG_ENABLED |
/* |
/* |
* shell interraction |
* shell interraction |
Line 667 int main(int argc, char **argv) {
|
Line 677 int main(int argc, char **argv) {
|
else if ((!strcmp(argv[i], "-testIO")) || |
else if ((!strcmp(argv[i], "-testIO")) || |
(!strcmp(argv[i], "--testIO"))) |
(!strcmp(argv[i], "--testIO"))) |
testIO++; |
testIO++; |
|
#ifdef LIBXML_XINCLUDE_ENABLED |
|
else if ((!strcmp(argv[i], "-xinclude")) || |
|
(!strcmp(argv[i], "--xinclude"))) |
|
xinclude++; |
|
#endif |
else if ((!strcmp(argv[i], "-compress")) || |
else if ((!strcmp(argv[i], "-compress")) || |
(!strcmp(argv[i], "--compress"))) { |
(!strcmp(argv[i], "--compress"))) { |
compress++; |
compress++; |
Line 773 int main(int argc, char **argv) {
|
Line 788 int main(int argc, char **argv) {
|
printf("\t--noblanks : drop (ignorable?) blanks spaces\n"); |
printf("\t--noblanks : drop (ignorable?) blanks spaces\n"); |
printf("\t--testIO : test user I/O support\n"); |
printf("\t--testIO : test user I/O support\n"); |
printf("\t--encode encoding : output in the given encoding\n"); |
printf("\t--encode encoding : output in the given encoding\n"); |
|
#ifdef LIBXML_XINCLUDE_ENABLED |
|
printf("\t--xinclude : do XInclude processing\n"); |
|
#endif |
} |
} |
xmlCleanupParser(); |
xmlCleanupParser(); |
xmlMemoryDump(); |
xmlMemoryDump(); |