[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-dev
Subject:    [jira] Created: (XERCESC-1515) Doctype well-formedness problem
From:       "Graham Bennett (JIRA)" <xerces-c-dev () xml ! apache ! org>
Date:       2005-10-12 22:19:05
Message-ID: 607262746.1129155545199.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

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


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic