summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-07-29 16:12:31 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-07-29 16:12:31 +0000
commit7e5c3f481f5e8c8eb2b038cb24a9b3d77e3806ab (patch)
treec0d8bd2049f3bcc6693e1f7c42c00613cf57f38e /xmllint.c
parent45490aebe7a60704e8ed850c498969858ab900ee (diff)
downloadlibxml2-7e5c3f481f5e8c8eb2b038cb24a9b3d77e3806ab.tar.gz
add a C program to run the W3C test suite, work in progress add a new
* runxmlconf.c Makefile.am: add a C program to run the W3C test suite, work in progress * xmllint.c: add a new option --oldxml10 to use the old parser * parser.c: fix the XML_PARSE_OLD10 processing of the new option and a bug in version parsing Daniel svn path=/trunk/; revision=3757
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmllint.c b/xmllint.c
index ee41697d..cabf24ba 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -202,6 +202,7 @@ static xmlStreamCtxtPtr patstream = NULL;
#endif
static int options = XML_PARSE_COMPACT;
static int sax = 0;
+static int oldxml10 = 0;
/************************************************************************
* *
@@ -2912,6 +2913,7 @@ static void usage(const char *name) {
printf("\t--sax1: use the old SAX1 interfaces for processing\n");
#endif
printf("\t--sax: do not build a tree but work just at the SAX level\n");
+ printf("\t--oldxml10: use XML-1.0 parsing rules before the 5th edition\n");
printf("\nLibxml project home page: http://xmlsoft.org/\n");
printf("To report bugs or get some help check: http://xmlsoft.org/bugs.html\n");
@@ -3237,6 +3239,10 @@ main(int argc, char **argv) {
i++;
pattern = argv[i];
#endif
+ } else if ((!strcmp(argv[i], "-oldxml10")) ||
+ (!strcmp(argv[i], "--oldxml10"))) {
+ oldxml10++;
+ options |= XML_PARSE_OLD10;
} else {
fprintf(stderr, "Unknown option %s\n", argv[i]);
usage(argv[0]);