You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Jakub Kahovec <j....@imperial.ac.uk> on 2005/03/22 20:57:36 UTC
problem with parsing file (whose filename contains spaces) inside
a jar
Hi,
I'd like to parse a xml file(whose file name contains spaces) inside a
jar but when i try to do it (with method parseURI("
jar:file:/.........../Digging hole.xml")
i get the following exception:
...
Caused by: org.w3c.dom.ls.LSException: JAR entry ..../Digging%20hole.xml
not found in ........\lib\mqat_examples.zip
at org.apache.xerces.parsers.DOMParserImpl.parseURI(Unknown Source)
......
But i'm pretty sure that the file is there because firstly, i put it
there ;-) and secondly, when I try to read the file in the following way
URL url = new URL("jar:file:/.........../Digging hole.xml");
JarURLConnection jarConnection = (JarURLConnection)url.openConnection();
everything is ok.
Any ideas how to manage it ?
Thank you
Jakub
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org