AlanQuatermain / aqtoolkit

A toolkit consisting of a bunch of generally useful routines and extensions I wrote when putting together other projects.
http://blog.alanquatermain.net/code
BSD 3-Clause "New" or "Revised" License
783 stars 148 forks source link

AQXMLParser/NSXMLParser delegate call behavior discrepancy #7

Open rlwimi opened 13 years ago

rlwimi commented 13 years ago

I'm parsing RSS1/2/Atom feeds with AQXMLParser, and I find a discrepancy between the behavior for the delegate call parser:didEndElement:namespaceURI:qualifiedName:. AQXMLParser sends nil for qualifiedName when the element is unqualified, but NSXMLParser sends qualifiedName equal to element name when it is unqualified.

I fixed this for myself pretty naively by returning completeStr for qualifiedName in the AQXMLParser.m line 377 didEndElement delegate call for the prefixStr==nil case.