Questions tagged [nsxmlparser]

NSXMLParser is a class of the Foundation Framework of Mac OSX developer library. This class allows developers to parse XML documents (including DTD declarations) in an event-driven manner.

NSXMLParser is a class of the Foundation Framework of Mac OSX developer library. This class allows developers to parse XML documents (including DTD declarations) in an event-driven manner. An NSXMLParser notifies its delegate about the items (elements, attributes, CDATA blocks, comments, and so on) that it encounters as it processes an XML document. It does not itself do anything with those parsed items except report them. It also reports parsing errors.

API documentation available at http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSXMLParser_Class/Reference/Reference.html

1267 questions
3
votes
1 answer

iPhone app freezes when parsing XML

My app freezes whenever I parse an XML feed. I have tried calling this instead: [NSThread detachNewThreadSelector:@selector(parseXML) toTarget:self withObject:nil]; which calls: -(void) parseXML { NSAutoreleasePool *pool = [[NSAutoreleasePool…
Zac Altman
  • 1,215
  • 4
  • 25
  • 37
3
votes
1 answer

Inaccurate xml parsing due to line breaks in the content

I am trying to parse XML using NSXMLParser but since some of the xml that I have contains line breaks () I am getting inaccurate parsing. For example "A genuine leader is not a
searcher for consensus
but, a molder of consensus" gets parsed as…
bachkoi32
  • 1,426
  • 4
  • 20
  • 31
3
votes
2 answers

Make NSXMLParser skip an Element

I'm using NSXMLParser on an iPhone App to parse HTML Files for a RSS or Atom Feed Link. Everything works fine until the parser find a