Commit 3b1478b7 authored by Daniel Veillard's avatar Daniel Veillard

fix the error message for invalid code point in content c.f. bug #339311

* parser.c: fix the error message for invalid code point in content
  c.f. bug #339311
Daniel
parent b63d2fab
Mon Apr 24 10:50:19 CEST 2006 Daniel Veillard <daniel@veillard.com>
* parser.c: fix the error message for invalid code point in content
c.f. bug #339311
Wed Apr 19 13:16:23 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemas.c test/schemas/restriction-enum-1*
......
......@@ -3661,6 +3661,13 @@ xmlParseCharDataComplex(xmlParserCtxtPtr ctxt, int cdata) {
}
}
}
if ((cur != 0) && (!IS_CHAR(cur))) {
/* Generate the error and skip the offending character */
xmlFatalErrMsgInt(ctxt, XML_ERR_INVALID_CHAR,
"PCDATA invalid Char value %d\n",
cur);
NEXTL(l);
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment