You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/07/04 16:47:48 UTC
DO NOT REPLY [Bug 10485] New: -
Cannot load XMLs from disk, if current dir has SPACE
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10485>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10485
Cannot load XMLs from disk, if current dir has SPACE
Summary: Cannot load XMLs from disk, if current dir has SPACE
Product: Xerces2-J
Version: 2.0.2
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Blocker
Priority: Other
Component: DOM
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: thomas@boerkel.de
If the current dir (from where java.exe is started, NOT the path to the XML)
has a SPACE (" "), then Xerces 2.0.2 cannot load XML files anymore. It always
throws a MalformedURLException. This was OK in 2.0.1.
For example, my current dir is "C:\" then everything works. If my current dir
is "C:\Test Test", then it does not work.
Loading the XML with this code:
DocumentBuilderFactory dbf;
dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setValidating(true);
dbf.setAttribute("http://apache.org/xml/features/validation/dynamic",
new Boolean(true));
dbf.setAttribute("http://apache.org/xml/features/validation/schema",
new Boolean(true));
documentBuilder = dbf.newDocumentBuilder();
doc = documentBuilder.parse(filename);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org