aboutsummaryrefslogtreecommitdiffstats
path: root/debugXML.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-02-25 11:52:31 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-02-25 11:52:31 +0000
commitf54cd533d8014ab04e9601ca8b05ee8a6b5c6e3f (patch)
tree0e77f63bc5d7df01001313be6e65f1e1bf08f268 /debugXML.c
parentafbca8e28152fa7eacf4b5d52f8b48a6d7488183 (diff)
downloadandroid_external_libxml2-f54cd533d8014ab04e9601ca8b05ee8a6b5c6e3f.tar.gz
android_external_libxml2-f54cd533d8014ab04e9601ca8b05ee8a6b5c6e3f.tar.bz2
android_external_libxml2-f54cd533d8014ab04e9601ca8b05ee8a6b5c6e3f.zip
fixing compilation and link option when configuring with --without-valid
* debugXML.c relaxng.c valid.c xinclude.c xmllint.c xmlreader.c: fixing compilation and link option when configuring with --without-valid should fix #135309 Daniel
Diffstat (limited to 'debugXML.c')
-rw-r--r--debugXML.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/debugXML.c b/debugXML.c
index bcb1fcd3..25c1d15e 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -1955,6 +1955,7 @@ xmlShellSave(xmlShellCtxtPtr ctxt, char *filename,
}
#endif /* LIBXML_OUTPUT_ENABLED */
+#ifdef LIBXML_VALID_ENABLED
/**
* xmlShellValidate:
* @ctxt: the shell context
@@ -1994,6 +1995,7 @@ xmlShellValidate(xmlShellCtxtPtr ctxt, char *dtd,
}
return (res);
}
+#endif /* LIBXML_VALID_ENABLED */
/**
* xmlShellDu:
@@ -2249,13 +2251,17 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
fprintf(ctxt->output, "\tsave [name] save this document to name or the original name\n");
fprintf(ctxt->output, "\twrite [name] write the current node to the filename\n");
#endif /* LIBXML_OUTPUT_ENABLED */
+#ifdef LIBXML_VALID_ENABLED
fprintf(ctxt->output, "\tvalidate check the document for errors\n");
+#endif /* LIBXML_VALID_ENABLED */
#ifdef LIBXML_SCHEMAS_ENABLED
fprintf(ctxt->output, "\trelaxng rng validate the document agaisnt the Relax-NG schemas\n");
#endif
fprintf(ctxt->output, "\tgrep string search for a string in the subtree\n");
+#ifdef LIBXML_VALID_ENABLED
} else if (!strcmp(command, "validate")) {
xmlShellValidate(ctxt, arg, NULL, NULL);
+#endif /* LIBXML_VALID_ENABLED */
} else if (!strcmp(command, "load")) {
xmlShellLoad(ctxt, arg, NULL, NULL);
#ifdef LIBXML_SCHEMAS_ENABLED