posted 18 years ago
Hello!
Ok, I'm using MSV to validate XML files against RelaxNG with embedded Schematron.
Here is my problem.
Is there a way to retrieve following information when error happens:
- error type (something like BadElementName, BadAtributeName, MissingElement....
- element/attribute name where error happened
- excpected element/attribute name (one in shema, if element/attribute name is incorrect)
- incorrect value in case regexp validation fails
SAXParseException returns only errorMessage, line and row of error (which are approximate as stated in documentation).
I have noticed there are ErrorInfo and ValidityViolation inside MSV Verifier (they contain all info I need), but I have no idea how to retrieve error information, that those classes contain, when parsing error happens.
Anyone?
Mario B.