Instead of passing the XML directly to JAXB for unmarshalling, it is first passed thru the XMLHelper.stripDoctypeDeclaration routine, so that the DOCTYPE declaration can be stripped off. This was done, so that the application can work, without needing a connection to the site reference by the DOCTYPE declaration.