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=8194>. 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=8194 % char in file name causes exception in parse method ------- Additional Comments From [EMAIL PROTECTED] 2002-10-16 14:11 ------- Thanks for the suggestions, guys, but there still seems to be a problem. The xml files I'm using have a system dtd reference in them like so: <!DOCTYPE ifx SYSTEM "ifx.dtd"> I upgraded to xerces 2.2.0, and I still get an illegal argument exception. If I try to escape the URI like this: // Parse the input file: Document xmlDoc; // Create an InputSource so the file names are parsed correctly FileInputStream myInputStream = new FileInputStream(xmlFile); InputSource myInputSource = new InputSource(myInputStream); xmlDoc = documentBuilder.parse(myInputSource); I no longer get the illegal argument exception, but it cannot find the DTD file; I get the error: org.xml.sax.SAXParseException: File "ifx.dtd" not found. So, if I don't escape the filename I get an illegal argument exception exception, and if I do escape it I get a file not found error. Any ideas? By the way, I HAVE asked the client to change their file names, but you know how it is, the guy who wrote that isn't with them any more! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
