Re: Weird XSD 1.1 assertion error

2012-06-24 Thread Jorge Williams
Hey Mukul, Yup, you pointed me in the right direction -- thanks...but I still think there's a bug. If you look at the docs to ErrorHandler: http://docs.oracle.com/javase/6/docs/api/org/xml/sax/ErrorHandler.html It says that: " it is up to the application to decide whether to throw an excepti

Re: Weird XSD 1.1 assertion error

2012-06-24 Thread Mukul Gandhi
Hi Jorge, I think, this error is not specific to XSD assertions. Setting a error handler on the JAXP validator object would solve this problem. Following are the proposed changes to solve this issue, Validator v = s.newValidator(); v.setErrorHandler(new ErrHandler()); v.validate(new StreamSour