[jdom-interest] xerces has problems with directories containing spaces?

Brett McLaughlin brett.mclaughlin at lutris.com
Tue Aug 1 16:14:39 PDT 2000

Scott Ellsworth wrote:
> At 02:32 PM 8/1/2000 -0700, Scott Ellsworth wrote:
> >Here is the error:
> >2000/08/01 14:24:05 Error parsing xml: org.jdom.JDOMException: File
> >"xmltest.dtd" not found.: Error on line 0: File "xmltest.dtd" not found.
> Aha!  I just discovered something rather entertaining.
> I ran the example in chapter 5 of Brett MacLaughlin's book to make sure
> that I understood what was going on, as well as the example I posted.
> In both cases, the program worked just fine when run from c:\xml.  When I
> ran in C:\Documents and Settings\Scott Ellsworth\My Documents\Java\xmltest,
> I started getting file not found errors.

Actually, I belive it works if you put the directory name in quotation
marks - there are some funny things now, as Xerces rewrote the URL class
(they were previously using java.net.URL), but older versions would work
with spaces if you put the whole dir/file in quotes.


> I must conclude that it is creating a url from the input, and doing so by
> adding an appropriate directory, then dying when the path has
> spaces.  Interesting.
> So, who would one write up a bug to?  The one in chapter 5 does not use
> jdom at all, so it must be something deep inside xerces.  I would think
> that as long as it is adding a path, it should either deal with or escape
> spaces.
> Scott
> Scott Ellsworth
> scott at alodar.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc. 
1200 Pacific Avenue, Suite 300 
Santa Cruz, CA 95060 USA 

More information about the jdom-interest mailing list