[jdom-interest] Bug in SAXBuilder.build(File)

Elliotte Harold elharo at metalab.unc.edu
Fri Dec 17 14:23:55 PST 2004


Boris Lemus wrote:


> The build method adds a slash to the begining of the directory path!!!, 
> and of course no such a directory exists in Windows. I've tried passing 
> an input stream to the build method instead of a File object with the 
> same results.
> 
> Any ideas  or workarounds??

I suspect you're misidentifying the problem. Likely the file is in fact 
malformed. If JDOM couldn't find or open the file, you'd see an 
IOException, not a JDOMParseException.

Also note that a file name is not a URL, and that file URLs are in 
general not valid file names.


-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim


More information about the jdom-interest mailing list