[ http://issues.apache.org/jira/browse/XERCESC-1515?page=all ] cargilld resolved XERCESC-1515: -------------------------------
Resolution: Fixed Hi, I just checked in a fix for both the 2.7 branch and the trunk. David > Doctype well-formedness problem > ------------------------------- > > Key: XERCESC-1515 > URL: http://issues.apache.org/jira/browse/XERCESC-1515 > Project: Xerces-C++ > Type: Bug > Components: Non-Validating Parser > Versions: 2.3.0, 2.7.0 > Environment: Redhat Enterprise Linux 3.0 > Reporter: Graham Bennett > Assignee: cargilld > > I have a document which I believe is not well formed that Xerces will > happily parse. > The document is as follows: > <?xml version="1.0"?> > <!DOCTYPE Doc [ <!ENTITY foo "foo"> ]> > <!DOCTYPE doc [ <!ENTITY bar "bar"> ]> > <doc></doc> > Xerces will give my SAX decl handler callbacks for both the DTD decls > and the entity decls for foo and bar, which causes problems in my code > since it expects never to get more than one declaration. If both > declarations declare the same name an error is thrown about duplicate > element declarations. > I have reproduced this problem with both xerces 2.3.0 and xerces 2.7.0. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]