[jboss-dev-forums] [Design of JBossXB] - Re: JBXB-101, disabling validation
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Apr 4 19:53:18 EDT 2007
After digging into the xerces code, both the VALIDATION and DYNAMIC_VALIDATION features need to be false to avoid validation of docs with DOCTYPEs. The UnmarshallerImpl.setValidation(boolean) was therefore updated to:
| public void setValidation(boolean validation) throws JBossXBException
| {
| parser.setFeature(VALIDATION, validation);
| parser.setFeature(DYNAMIC_VALIDATION, false);
| }
|
With this change the test passes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034823#4034823
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034823
More information about the jboss-dev-forums
mailing list