Hi Marcus!

I am wondering that the first code example works with the other
implementations, because the Exception reads like this:

> org.jdom.JDOMException: Error on line 3: Relative URI
> "../../DailyHoroscope/dat/dh.dtd"; can not be resolved without a
> document URI.

This means that by using a FileInputStream there is no uri supplied to
the parser, which therfore cannot determine where the DTD lies
(../../DailyHoroscope/dat/dh.dtd).

Using File, the parser knows the location/uri of the source document and
thus is able to determine the relative Location of the DTD.
        
Bye, 
Harald

-- 
Harald Hett <[EMAIL PROTECTED]>
Gesellschaft für integrierte Systemplanung

---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to