My next problem with my 'wanting to use schema validation for UI validation' is a problem with the invalid data. The real problem is that InvalidDatatypeValueException is not always the correct one, for example in org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl when validating facets with type union any validation errors actually caught disgarded since they (technically) are not significant since only the net result of an exception with cvc-datatype-valid.1.2.3 really matters. However for me having the root validation error would be incredibly useful since then I can have a much more detailed error message. As you can gather I'm not particulalry familiar with xerces, how easy would it be to replace the org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl implementation with my own so I can extend it to capture the additional InvalidDatatypeValueExceptions?
Hopefully just some property needs changing :)


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

Reply via email to