[ https://issues.apache.org/jira/browse/XERCESC-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Cantor updated XERCESC-1515: ---------------------------------- Fix Version/s: 2.8.0 > Doctype well-formedness problem > ------------------------------- > > Key: XERCESC-1515 > URL: https://issues.apache.org/jira/browse/XERCESC-1515 > Project: Xerces-C++ > Issue Type: Bug > Components: Non-Validating Parser > Affects Versions: 2.3.0, 2.7.0 > Environment: Redhat Enterprise Linux 3.0 > Reporter: Graham Bennett > Assignee: cargilld > Priority: Major > Fix For: 2.8.0 > > > 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 was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org