SAXParseException has a new
method to identify which kind of error is being reported:
public String getExceptionId()
Since diagnostic message vary between parsers, these identifiers are URIs so parsers can define nonstandard IDs.
Standard IDs look like:
http://xml.org/sax/exception/xml/rule-number indicates a BNF grammar violation by production
http://xml.org/sax/exception/xml/wfc-id indicates a well-formedness constraint violation by ID attribute
http://xml.org/sax/exception/xml/vc-id indicates a validity constraint violation by ID attribute
http://xml.org/sax/exception/xmlns/nsc-id indicates a namespace violation by ID attribute
Some well-formedness violations can be attributed to more than one grammar rule. The most specific applicable rule should be used.