Breaks on encountering Ampersand #6

Closed
ankitaggarwal opened this Issue Feb 25, 2012 · 2 comments

Comments

Projects
None yet
2 participants

Parsing breaks on Target (iPod Touch) when & is encountered in document.

NOTE: It works fine on simulator.

Example XML: <app href="http://itunes.apple.com/us/app/denso/id439220551?ls=1&amp;mt=8" share="true" />

Example Code:
for (SMXMLElement *app in [document.root childrenNamed:@"app"]) { // Code application.appURL = [app attributeNamed:@"href"]; }

Owner

nfarina commented Feb 25, 2012

It works for me on my iPhone 4S running 5.0.1. I'll test again when I get access to our old iPod Touch at the office on Monday.

One thing to note is that SMXMLDocument doesn't do any of the XML parsing itself, it simply uses NSXMLParser. So if the XML parsing is not working for a particular document, it's highly likely that the problem lies within NSXMLParser and there's nothing I could do to fix it.

Owner

nfarina commented Mar 1, 2012

Did you discover the cause of the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment