This is somewhat similar to the question asked recently about not validating or validating against a DTD from an alternate location. I think you'd have to write a custom entity resolver that had the logic to resolve the DTD in the document to another DTD that you specify in the resolver. A re-direction, essentially. This assumes you know what DTD you want to validate against ahead of time- once you parse the doc it is too late obviously since that is when validation happens.
Cheers Brian Alain Schneble (Realize IT GmbH) wrote: >hi folks > >I've a basic question concerning the parsing and validation of xml-files. > >Is it possible to parse and validate an xml file against a DTD other than the >one that ist declared (specified) in the DOCTYPE-declaration without >changing the original DOCTYPE-declaration ? > >can you help me? > >thanks >alain > > > > > >_______________________________________________ >dom4j-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/dom4j-user > > _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
