mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
Norm suggested a nicer error message for xml:space values errors Daniel
* parser.c: Norm suggested a nicer error message for xml:space values errors Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Wed Mar 26 17:30:37 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* parser.c: Norm suggested a nicer error message for xml:space values
|
||||||
|
errors
|
||||||
|
|
||||||
Wed Mar 26 01:34:19 CET 2003 Daniel Veillard <daniel@veillard.com>
|
Wed Mar 26 01:34:19 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* xpath.c include/libxml/xpath.h: first part of the fix to
|
* xpath.c include/libxml/xpath.h: first part of the fix to
|
||||||
|
2
parser.c
2
parser.c
@ -6620,7 +6620,7 @@ xmlParseAttribute(xmlParserCtxtPtr ctxt, xmlChar **value) {
|
|||||||
ctxt->errNo = XML_ERR_ATTRIBUTE_WITHOUT_VALUE;
|
ctxt->errNo = XML_ERR_ATTRIBUTE_WITHOUT_VALUE;
|
||||||
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
||||||
ctxt->sax->error(ctxt->userData,
|
ctxt->sax->error(ctxt->userData,
|
||||||
"Invalid value for xml:space : \"%s\", \"default\" or \"preserve\" expected\n",
|
"Invalid value \"%s\" for xml:space : \"default\" or \"preserve\" expected\n",
|
||||||
val);
|
val);
|
||||||
ctxt->wellFormed = 0;
|
ctxt->wellFormed = 0;
|
||||||
if (ctxt->recovery == 0) ctxt->disableSAX = 1;
|
if (ctxt->recovery == 0) ctxt->disableSAX = 1;
|
||||||
|
Reference in New Issue
Block a user