From: <je...@mk...> - 2003-01-13 10:13:08
|
I beleive you should be able to do this with XMLUnit.getTestParser().setEntityResolver(new EntityResolver(){ public InputSource resolveEntity (String publicId, String systemId){ ... resolve resolve you're entity here } }); http://java.sun.com/j2se/1.4.1/docs/api/org/xml/sax/EntityResolver.html Never tried it myself though, let me know how you get on. ;) Quoting Ralf Wirdemann <rwi...@t-...>: > Hi, > > thanks for XML-Unit. It looks like exactly the tool we need for > verifying that our UML2EJB generator generates the same XML results > after we've changed the generator. > > I got one question: My XML file contains the following line at the top > of the document: <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" > "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">. The problem is, that > this file doesn't exist and there is no way for me to change the > generator the produce a correct http-link. Therefore my question is: Is > it possible to prevent XMLUnit from following http-links given in the > XML-tag <!DOCTYPE>? > > Thanks, > Ralf > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Xmlunit-general mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlunit-general > |