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=6081>. 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=6081 DTD file not found ------- Additional Comments From [EMAIL PROTECTED] 2002-01-31 18:12 ------- Here is a code that does not work without the "in.setSystemId()" line: 1. I receive an XML file referencing "myfile.dtd" (no path) over HTTP 2. I put the contents of the entire XML file into "strRequest" 3. Then I turn it into an input source: InputSource in = new InputSource(new StringReader(strRequest)); DOMParser parser = new DOMParser(); parser.parse(in); At the parser.parse(in) line, I get "DTD file not found" message. Even putting the relative or absolute path for the DTD inside the XML file made no difference. Finally, I found on one on the message boards on the internet that this is a known bug in Xerces and it can be fixed by inserting in.setSystemId() line. And indeed it worked: InputSource in = new InputSource(new StringReader(strRequest)); in.setSystemId("myfile.dtd"); DOMParser parser = new DOMParser(); parser.parse(in); I hope this helps. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
