Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: RSS Reader
View Single Post
Old 06-19-2009, 01:40 PM   #8 (permalink)
smithdale87
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

Quote:
Originally Posted by starwarsdevwookie59 View Post
Right, I did look that up. So what should I do to fix it?

Thanks again for your help

Also-I downloaded ThumStruck, very impressive.
When I get that error, it most likely means that the XML is not formatted correctly, either a tag didnt get closed when it should have something like that..

In order to determine exactly where in the feed the problem occurs, I like to print out the name of the elements in the didStartElement and didEndElement parser delegate methods.

Code:
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
{
     NSLog(@"<%@>", elementName);

// do other stuff
}

- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
{
    NSLog(@"</%@>", elementName);
}

Now you should be able to see what element you were on when the error gets thrown. Just look @ the console output.
smithdale87 is offline   Reply With Quote
 

» Advertisements
» Online Users: 424
17 members and 407 guests
baja_yu, buggen, evilmatt10, givensur, MarkC, Mnashmi, networ, pabloruiz55, pochuang, QuantumDoja, Sami Gh, scubadivingfool, Speed, teebee74, TheStalker, thestojkovic, za1407
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,636
Threads: 94,101
Posts: 402,819
Top Poster: BrianSlick (7,990)
Welcome to our newest member, samdanielblr
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:39 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.