2001-08-13 Alex Larsson <alexl@redhat.com>
* parserold.c:
Fix a parser bug. When reading attribute values with " the parser
thought this was the ending quote. Also fixes problems with some other
escaped values (<, & and escaped whitespace).
This fixes a bug in nautilus where sometimes the tree view didn't show
up.
Made xmlParseChunk behaving the same way as xmlParseFile
(no matter if it's the correct behaviour or not ;-)
* parser.c
(xmlParseChunk): Use the old parser if xmlUseNewParserDefault is not
set.
Added xmlOldParseChunk declaration.
* oldparser.c (xmlOldParseChunk): Made non-static.
- added back the old parser
- make it the default
- allow people to switch easilly
Few changes except the old parser where all names were changed and
made static except 3 entry points:
- Makefile.am parserold.c: added back the 1.8.11 parser for compatibility
- README: updated
- SAX.c: integrate back 1.8.11 callback code and call it when
we are using the old parser
- entities.c: fixed a small problem
- parser.[ch]: allow to use either parser, add xmlUseNewParser(),
and modify the Initialization code to check LIBXML_USE_NEW_PARSER
or LIBXML_USE_OLD_PARSER
- tester.c: make it use the new parser by default, but check
LIBXML_USE_OLD_PARSER and add the --oldparser option
Daniel