#56 URI string not passed in SAX 2 endElement callback

SAX_2.0
open
nobody
5
2014-08-14
2004-05-16
Anonymous
No

The URI string in the SAX 2 endElement callback is empty
on tags that don't contain a prefix when defining a
default namespace. The URI string is properly passed
in the startElement notification. I discovered this parsing
a wsdl document ex.
<definitions name="FooService"
xmlns="http://schemas.xmlsoap.org/wsdl/">

<portType name="fooPortType"
...
</portType>

</definitions>

The startElement on pprtType properly sets the URI
paramater to "http://schemas.xmlsoap.org/wsdl/" but
the endElement has it set to "". I would think the
endElement should have the same URI string.

My email address is pvosbur@hotmail.com. Your
help here would be greatly appreciated.
Regards,
Peter VosBurgh

Discussion

  • Logged In: YES
    user_id=226817

    This appears to be a bug in the specific SAX parser you are
    using, not SAX itself. Please refile the big with the parser
    vendor.

     
  • Logged In: NO

    sax