* xmlFatalErr: * @ctxt: an XML parser context * @code: the error number * @info: extra information string * * Handle a fatal parser error, i.e. violating Well-Formedness constraints */
| 361 | * Handle a fatal parser error, i.e. violating Well-Formedness constraints |
| 362 | */ |
| 363 | void |
| 364 | xmlFatalErr(xmlParserCtxtPtr ctxt, xmlParserErrors code, const char *info) |
| 365 | { |
| 366 | const char *errmsg; |
| 367 | |
| 368 | errmsg = xmlErrString(code); |
| 369 | |
| 370 | if (info == NULL) { |
| 371 | xmlCtxtErr(ctxt, NULL, XML_FROM_PARSER, code, XML_ERR_FATAL, |
| 372 | NULL, NULL, NULL, 0, "%s\n", errmsg); |
| 373 | } else { |
| 374 | xmlCtxtErr(ctxt, NULL, XML_FROM_PARSER, code, XML_ERR_FATAL, |
| 375 | (const xmlChar *) info, NULL, NULL, 0, |
| 376 | "%s: %s\n", errmsg, info); |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | /** |
| 381 | * xmlIsLetter: |
no test coverage detected