diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-06-15 13:27:56 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-06-15 13:27:56 +0000 |
commit | 81562d2d66096c43d5ea3ff180063782e4b5a23d (patch) | |
tree | 2b68a0625f63c09b7afd509714e71cfeaf20b96c /xmllint.c | |
parent | c63fbbff72da458dd509402a56d441fb21593fe7 (diff) | |
download | libxml2-81562d2d66096c43d5ea3ff180063782e4b5a23d.tar.gz |
if sax1 is used and input is a file use the old API xmlParseFile()
* xmllint.c: if sax1 is used and input is a file use the old
API xmlParseFile()
* xmlschemas.c: cleanups
* doc/* testapi.c elfgcchack.h: rebuilt to add python bindings
for the new functions in Schemas.
Daniel
Diffstat (limited to 'xmllint.c')
-rw-r--r-- | xmllint.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1308,8 +1308,14 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) { } else { if (rectxt != NULL) doc = xmlCtxtReadFile(rectxt, filename, NULL, options); - else + else { +#ifdef LIBXML_SAX1_ENABLED + if (sax1) + doc = xmlParseFile(filename); + else +#endif /* LIBXML_SAX1_ENABLED */ doc = xmlReadFile(filename, NULL, options); + } } } |