This content has been marked as final.
Show 1 reply
-
1. Re: JBXB-101, disabling validation
starksm64 Apr 4, 2007 7:53 PM (in response to starksm64)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.