* xmlErrAttributeDup: * @ctxt: an XML parser context * @prefix: the attribute prefix * @localname: the attribute localname * * Handle a redefinition of attribute error */
| 233 | * Handle a redefinition of attribute error |
| 234 | */ |
| 235 | static void |
| 236 | xmlErrAttributeDup(xmlParserCtxtPtr ctxt, const xmlChar * prefix, |
| 237 | const xmlChar * localname) |
| 238 | { |
| 239 | if (prefix == NULL) |
| 240 | xmlCtxtErr(ctxt, NULL, XML_FROM_PARSER, XML_ERR_ATTRIBUTE_REDEFINED, |
| 241 | XML_ERR_FATAL, localname, NULL, NULL, 0, |
| 242 | "Attribute %s redefined\n", localname); |
| 243 | else |
| 244 | xmlCtxtErr(ctxt, NULL, XML_FROM_PARSER, XML_ERR_ATTRIBUTE_REDEFINED, |
| 245 | XML_ERR_FATAL, prefix, localname, NULL, 0, |
| 246 | "Attribute %s:%s redefined\n", prefix, localname); |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * xmlFatalErrMsg: |
no test coverage detected