Wednesday, March 30, 2011

TouchXML unable to parse YQL result XML on a iPhone

Problem 1: Has anyone worked with TouchXML, I am facing problem parcing rssfeed that has characters like & or even & The parser takes the url as input and doesn’t seem to parse the XML content. NSXMLParser has no such problem for the same feed URL. Problem 2: Another problem with NSXMLParse is when the foundCharacter() method finds “\n” even the call like if([currentElementValue isEqualToString:@"\n"]) return;

currentElementValue = [currentElementValue stringByReplacingOccurrencesOfString:@"\n" withString:@""];

both these lines doesn’t seem to eliminate the \n character.

Any help guys ?

From stackoverflow
  • Did you ever get this resolved. I have the same problem and have tried many things, none seems to work. I think there must be some escape character we need to use to check for the newline or tab.

0 comments:

Post a Comment