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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
