You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "cargilld (JIRA)" <xe...@xml.apache.org> on 2005/10/14 20:52:45 UTC
[jira] Assigned: (XERCESC-1515) Doctype well-formedness problem
[ http://issues.apache.org/jira/browse/XERCESC-1515?page=all ]
cargilld reassigned XERCESC-1515:
---------------------------------
Assign To: cargilld
> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org