Quote:
Originally Posted by starwarsdevwookie59
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.