"RefuX Zanzeebarr" <[EMAIL PROTECTED]> wrote on 06/28/2006 05:06:09 PM:
> 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? I suppose you could validate against each of the member types [1] yourself though the errors you report may be a bit misleading. > Hopefully just some property needs changing :) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] [1] http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSSimpleTypeDefinition.html#getMemberTypes() Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
