MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlErrAttributeDup

Function xmlErrAttributeDup

ThirdParty/libxml2/vtklibxml2/parser.c:235–247  ·  view source on GitHub ↗

* xmlErrAttributeDup: * @ctxt: an XML parser context * @prefix: the attribute prefix * @localname: the attribute localname * * Handle a redefinition of attribute error */

Source from the content-addressed store, hash-verified

233 * Handle a redefinition of attribute error
234 */
235static void
236xmlErrAttributeDup(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:

Callers 3

xmlParserNsPushFunction · 0.85
xmlParseStartTagFunction · 0.85
xmlParseStartTag2Function · 0.85

Calls 1

xmlCtxtErrFunction · 0.85

Tested by

no test coverage detected