[Expat-bugs] [ expat-Bugs-920274 ] xml: namespace not closed after entity

SourceForge.net noreply at sourceforge.net
Fri Apr 30 00:25:38 EDT 2004


Bugs item #920274, was opened at 2004-03-20 18:35
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=920274&group_id=10127

Category: None
>Group: Test Required
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: xml: namespace not closed after entity

Initial Comment:
When an external entity is parsed, StartNamespaceDecl is
called for xml http://www.w3.org/1998/namespace (from
setContext). On exit, EndNamespaceDecl is not called, and
the calls become unbalanced.

----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2004-04-30 00:25

Message:
Logged In: YES 
user_id=290026

The patch has been committed to xmlparse.c - forgot which
revision. Needs testing.

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2004-04-07 20:10

Message:
Logged In: YES 
user_id=290026

Please check if the attached patch - nsDecl.diff - works
for you.

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2004-03-22 22:58

Message:
Logged In: YES 
user_id=290026

Assigned to me - would like to have this resolved
before releasing 1.95.8.

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2004-03-20 21:52

Message:
Logged In: YES 
user_id=290026

I looked at the code, and I am wondering why 
startNamespaceDecl() is called at all. 
Why should Expat call it when starting to parse an external
entity? Am I overlooking something?
At the moment it appears to me that this call-back is
an undesirable side-effect of a child parser inheriting
namespace scopes.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=920274&group_id=10127



More information about the Expat-bugs mailing list