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=6128>. 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=6128 Xerces 1.4.4 cannot find DTD Summary: Xerces 1.4.4 cannot find DTD Product: Xerces-J Version: 1.4.4 Platform: All OS/Version: All Status: NEW Severity: Major Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We wrote our own revalidating parser: outputFormat.setIndenting(true); outputFormat.setOmitComments(false); outputFormat.setOmitDocumentType(false); outputFormat.setOmitXMLDeclaration(false); outputFormat.setEncoding(RepositoryConstants.XMLENCODING); serial = new XMLSerializer(stringOut, outputFormat); serial.asDOMSerializer(); serial.serialize(doc); strReader = new StringReader(stringOut.toString()); try { // Creating an input source that the parser will accept // and passing it as the parameter to validateFile this.validateFile(new InputSource(strReader)); } On Xerces 1.4.3 this works for both XML Schema and DTD, but on Xerces 1.4.4 it does not work for DTD's, we get this message: Stopping after fatal error: File "bookgram.dtd" not found. The xml file is as follows: <?xml version="1.0"?> <!DOCTYPE book SYSTEM "bookgram.dtd"> <book> <title>Professional Java Programming</title> <author>Brett Spell</author> <publisher>Wrox Press</publisher> <tableOfContents showPageNumbers="Yes"> <tocEntry>Printing</tocEntry> <tocEntry>Cut and Paste</tocEntry> <tocEntry>Drag and Drop</tocEntry> </tableOfContents> </book> the DTD is as follows: <!ELEMENT book (title, author, publisher, tableOfContents)> <!ELEMENT title (#PCDATA)> <!ELEMENT author (#PCDATA)> <!ELEMENT publisher (#PCDATA)> <!ELEMENT tableOfContents (tocEntry+)> <!ATTLIST tableOfContents showPageNumbers CDATA "yes" > <!ELEMENT tocEntry (#PCDATA)> Please let us know if this is a bug or a problem on our end. Thanks, Rob --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
