----- Original Message ----- From: "Marc Pellmann" <[EMAIL PROTECTED]> > Hello! > > I want to read a XML Document with org.dom4j.io.SAXReader in a dom4j > Document. The Problem is, that the given DTD in the Document is not at > the given Position, so the Method (read) failed. I want to ignore the DTD...
Whether you turn validation on or off, any SAX parser will always try to find the DTD if it is mentioned in an XML document. The typical way to solve this problem is to attacha SAX EntityResolver to the SAXReader so that you can read the DTD or schema file from whereever you wish, the classpath, ServletContext, a website near you or whatever. There's details here... http://www.mail-archive.com/dom4j-user@lists.sourceforge.net/msg00829.html James ------- http://radio.weblogs.com/0112098/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user