[jdom-interest] XIncluder and DocType

Jason Hunter jhunter at collab.net
Mon Apr 30 11:24:57 PDT 2001

bob mcwhirter wrote:
> > <!DOCTYPE TEAM SYSTEM "file:/D:/books/gold/source/22/team.dtd">
> >
> > This is a little surprising. I don't think JDOM should be converting
> > relative to absolute URLs without an explicit client request.
> >
> > Looking at the JDOM code I can't figure out where or why this happened.
> > It might even be in SAXBuilder or XMLOutputter. Any ideas?
> JDOM *may* be turning it into a File, and then using
> File.toURL(), which I seem to recall attempts to make
> things fully-qualified absolute rooted URLs.
> 'course, I could be wrong; happens all the time.

There's no File magic.  Here's the code from SAXHandler:

    public void startDTD(String name, String publicId, String systemId)
        throws SAXException {

            new DocType(name, publicId, systemId));
        inDTD = true;

And XMLOutputter just prints the raw string.  My guess is SAX does the


More information about the jdom-interest mailing list