hello

i'm processing XML documents using the Xerces2 SAX2 interface. the
documents are validated against a schema. my problem is that there's a
known class of schema errors i wan't ignore in the ErrorHandler
implementation but still want to validate documents. unfortunately, i
can't affect document generation or the schema definition. the only way
i've found for ignoring certain errors is to classify errors based on
string matching on SAXParseException's message text. string matching is
error prone and is IMO not the best way to classify errors. it would be
nice if Xerces would specify integer error codes for each parse error and
provide a way of getting this code when an error occurs. one way to do
this would be to add an

        int getErrorCode()

method to SAXParseException.

best regards,
-- 
        aspa



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to