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-03-25 07:38 ------- Here XML document is feeded to parser using character stream. While doing this application should use InputSource#setSystemId() to provide base for resolving relative URIs. Refer to SAX documentation for detail. http://www.saxproject.org/apidoc/org/xml/sax/InputSource.html#InputSource(java.io.Reader) If no systemId is provided parser tries to resolve the relative URIs against PWD, ie the best it can do. So, in your case parser will search for file $PWD/myfile.dtd, parser will complain if your DTD is not in PWD, and i suspect the same in your case. However, u have to be careful when u give absolute path as they should be in standard URI format, as windows path names are not URI. I tried the case mentioned by you (giving absolute path and setting systemId when giving relative path, feeding character stream) w/ Xerces2.0 and Xerces2.0.1 and it behaves normally as doucmented by SAX InputSource. Could you try it with latest version of Xerces2. Please give your feedback if you have different test case or if above explanation or anything is not clear. Thanks, Neeraj B. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
