When I want to validate my XML docuemnts against a schema in my server-side Java, I use the built-in JRE Xerces implementation and javax.xml.validation.Schema. It works fine, but when validation fails, Xerces gives error messages that are very close to useless, for example:
cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'PopulatedStringType'
These can take an age to diagnose and track down to the particular part of the XML document that fails validation, and all because of a poor error message.
So my question is, do you use an alternative means of validating XML against Schema, that gives a more useful output on validation failure?
Please not that this is server-side Java, so please don't say "use XML Spy" or similar.