PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2596 *** shadow/2596 Thu Jul 12 06:07:58 2001 --- shadow/2596.tmp.22703 Mon Jul 30 05:38:52 2001 *************** *** 1,7 **** +============================================================================+ | Bad DTD crashes DOM Parser. | +----------------------------------------------------------------------------+ ! | Bug #: 2596 Product: Xerces-C | | Status: NEW Version: Nightly build | | Resolution: Platform: Other | | Severity: Normal OS/Version: Other | --- 1,7 ---- +============================================================================+ | Bad DTD crashes DOM Parser. | +----------------------------------------------------------------------------+ ! | Bug #: 2596 Product: Xerces-C++ | | Status: NEW Version: Nightly build | | Resolution: Platform: Other | | Severity: Normal OS/Version: Other | *************** *** 23,26 **** someattribute #CDATA #REQUIRED I think that the DOMParser should have thrown an exception instead of ! segfaulting. --- 23,60 ---- someattribute #CDATA #REQUIRED I think that the DOMParser should have thrown an exception instead of ! segfaulting. ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-07-30 05:38 ------- ! I have modified personal.dtd to: ! ! C:\>cat d:\mydoc\xml\myxml\personal_bad.dtd ! <?xml encoding="ISO-8859-1"?> ! ! <!-- @version: --> ! ! <!ELEMENT personnel (person)+> ! <!ELEMENT person (name,email*,url*,link?)> ! <!--ATTLIST person id ID #REQUIRED--> ! <!ATTLIST person #REQUIRED> ! <!ELEMENT family (#PCDATA)> ! <!ELEMENT given (#PCDATA)> ! <!ELEMENT name (#PCDATA|family|given)*> ! <!ELEMENT email (#PCDATA)> ! <!ELEMENT url EMPTY> ! <!ATTLIST url href CDATA #REQUIRED> ! <!ELEMENT link EMPTY> ! <!ATTLIST link ! manager IDREF #IMPLIED ! subordinates IDREFS #IMPLIED> ! ! And I got the expected error message without crash: ! C:\>DOMCount d:\mydoc\xml\myxml\personal_bad_dtd.xml ! ! Fatal Error at file d:\mydoc\xml\myxml\personal_bad.dtd, line 8, char 18 ! Message: Expected an attribute name ! ! Errors occured, no output available ! ! Can you post your dtd file for further investigation? Or have you ! turned on any specific feature? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
