[jdom-interest] SAXBuilder dtd location

Victor Toni jdom at vitoni.de
Fri Jul 3 18:37:55 PDT 2009


Hello Bernd,

On 03.07.2009 21:01, Bernd Müller wrote:
> I try to build documents with the SAXBuilder with turned on 
> validation. I have a bunch of xml-documents that are spread through 
> various sub folders. Therefore, I want the SAXBuilder to look at a 
> given position for the dtd. How do I tell the SAXBuilder where to find 
> the dtd?
The way to go would be to implement the EntityResolver interface:

http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/EntityResolver.html

For a more info see:

http://www.ibm.com/developerworks/library/x-tipent.html

Kindest regards,
Victor



More information about the jdom-interest mailing list