SAXParseException has a new getExceptionId()
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-66
http://xml.org/sax/exception/xml/wfc-PEInInternalSubset
http://xml.org/sax/exception/xml/vc-roottype
http://xml.org/sax/exception/xml/nsc-NSDeclared
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.