John Fleck fixed typos in the options output fix ignorable white space SAX
* xmllint.c: John Fleck fixed typos in the options output
* parser.c SAX.c: fix ignorable white space SAX selection
* entities.c: Steve Underwood found the possibility of an
ininite loop in case of error.
Daniel
diff --git a/SAX.c b/SAX.c
index 05d70ab..4dab41e 100644
--- a/SAX.c
+++ b/SAX.c
@@ -1258,7 +1258,6 @@
* @len: the number of xmlChar
*
* receiving some chars from the parser.
- * Question: how much at a time ???
*/
void
characters(void *ctx, const xmlChar *ch, int len)
@@ -1364,7 +1363,7 @@
* @len: the number of xmlChar
*
* receiving some ignorable whitespaces from the parser.
- * Question: how much at a time ???
+ * UNUSED: by default the DOM building will use characters
*/
void
ignorableWhitespace(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch ATTRIBUTE_UNUSED, int len ATTRIBUTE_UNUSED)
@@ -1682,7 +1681,7 @@
endElement,
reference,
characters,
- ignorableWhitespace,
+ characters,
processingInstruction,
comment,
xmlParserWarning,
@@ -1726,7 +1725,7 @@
xmlDefaultSAXHandler.reference = reference;
xmlDefaultSAXHandler.characters = characters;
xmlDefaultSAXHandler.cdataBlock = cdataBlock;
- xmlDefaultSAXHandler.ignorableWhitespace = ignorableWhitespace;
+ xmlDefaultSAXHandler.ignorableWhitespace = characters;
xmlDefaultSAXHandler.processingInstruction = processingInstruction;
xmlDefaultSAXHandler.comment = comment;
if (xmlGetWarningsDefaultValue == 0)
@@ -1762,7 +1761,7 @@
endElement,
NULL,
characters,
- ignorableWhitespace,
+ characters,
NULL,
comment,
xmlParserWarning,