[ expat-Bugs-566334 ] Default namespace => wrong element names

noreply@sourceforge.net noreply@sourceforge.net
Sat Jun 8 18:33:02 2002


Bugs item #566334, was opened at 2002-06-08 21:06
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=566334&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
>Priority: 8
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Default namespace => wrong element names

Initial Comment:
When a document uses a default namespace and expat 
is set up to be aware of namespaces the tag names 
reported in the endElementHandler become incorrect.

It seems that the endElementHandler always reports 
the same thing that was last reported in the 
startElementHandler.

With a document as follows and with the namespace
separator char set to '@' 

<smil xmlns="http://w3.org/SMIL20/">
  <head>
     <title>Test</title>
  </head>
  <body>
  </body>
</smil>

the start and end element handlers of expat will report

start: http://w3.org/SMIL20/@smil
start: http://w3.org/SMIL20/@head
start: http://w3.org/SMIL20/@title
end: http://w3.org/SMIL20/@title
end: http://w3.org/SMIL20/@title <-- should be head
start: http://w3.org/SMIL20/@body
end: http://w3.org/SMIL20/@body
end: http://w3.org/SMIL20/@body <-- should be smil

This has been observed in the win32 version of 1.95.3 
with XML_UNICODE_WCHAR_T defined.

I had a quick look at the tag structure and saw that 
localName had the correct value. If namespace 
processing is turned off the correct names are reported.

/Roland

d95-rpe@nada.kth.se






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

>Comment By: Karl Waclawek (kwaclaw)
Date: 2002-06-08 21:32

Message:
Logged In: YES 
user_id=290026

I can confirm your observation, even for the
case of XML_UNICODE_WCHAR_T not defined,
and using "^" as namespace separator.

Can anybody duplicate this on another platofrm?

Karl

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

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