How to disable DTD fetching using JAXB2.0
问题 I'm trying to use JAXB to unmashall some XML which I used xjc to create in the first place. I don't want to do any validation on the unmarshalling, but even though I have disabled the validation according to the JAXB documentation with u.setSchema(null); , but this hasn't prevented a FileNotFoundException being thrown when it tries to run and can't find the schema. JAXBContext jc = JAXBContext.newInstance("blast"); Unmarshaller u = jc.createUnmarshaller(); u.setSchema(null); return u