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
Nobody/Anonymous ( nobody ) - 2002-06-09 01:06
8
Closed
Fixed
Karl Waclawek
None
None
Public
|
Date: 2002-06-13 12:57 Logged In: YES |
|
Date: 2002-06-12 14:42 Logged In: YES |
|
Date: 2002-06-10 19:57 Logged In: YES |
|
Date: 2002-06-09 01:32 Logged In: YES |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use