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
4
votes
1 answer

How to get data from a website in xml format and parse that data to do stuff using objective-c

I want to get the data from the website careercup.com in xml format and parse that using objective c and hopefully load some resulting data onto a plist file. Could anyone guide me on how to go about doing this? Meaning how to get the data from the…
anonuser0428
  • 11,789
  • 22
  • 63
  • 86
3
votes
1 answer

My NSXMLParser doesn't work in background

Parsing works great. -(void) callParse { parser = [[NSXMLParser alloc] initWithData:data]; parser.delegate = self; [parser parse]; [parser release]; } I want to perform parsing in background. This code doesn't do any parsing. But why? …
Voloda2
  • 12,359
  • 18
  • 80
  • 130
3
votes
3 answers

How do I use NSXMLParser in a background

I need to parse some files in the background mode. How can I do this. Is it NSXMLParser asynchronous?
Voloda2
  • 12,359
  • 18
  • 80
  • 130
3
votes
3 answers

Using an NSXMLParser to parse HTML

I'm working on an app which aggregates some feeds from the internet and reformats the content. So I'm looking for a way to parse some HTML. Given XML and HTML are very similar in structure I was thinking "maybe I should just use an NSXMLParser" I'm…
evanmcdonnal
  • 46,131
  • 16
  • 104
  • 115
3
votes
5 answers

NSUnknownKeyException - setValue: forUndefinedKey in classfile

I am pretty new to iPhone development and I am getting this error output. I know what is happening, I just don't know how to fix it. Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[
Jesse Durham
  • 285
  • 1
  • 5
  • 18
3
votes
2 answers

iOS: NSXMLParser get attribute

I'm really new to this and I'm trying to read an RSS feed, and so far everything is good. This is how I do it: - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString…
tbleckert
  • 3,763
  • 4
  • 32
  • 39
3
votes
2 answers

Using NSXMLParser with ISO-8859-1 truncates words with accents

I have the same exact problem that's in this question, but it didn't get any good answers. I'm trying to parse an XML file with an ISO-8859-1 encoding, but everytime there's an accentuated word, it gets truncated and doesn't show properly. Example:…
3
votes
3 answers

NSXMLParser parsing xml file encoded using Windows-1256

i want to parse rss file in Windows-1256" encoding but it is not being read by parser i done alot of parsing in UTF8 encoding but only this don't work why? rss file with Windows-1256 Solved solution is NSString *myStr = [[NSString alloc]…
Mohamed DiaaEldin
  • 1,061
  • 1
  • 10
  • 23
3
votes
4 answers

EXC_BAD_ACCESS crash when releasing NSXMLParser

I'm seeing an intermittent crash on [parser release]. I'd say I see it about 5% of the time, and the data I am parsing varies between each crash. I can't for the life of me figure out why. Before I submit a bug report to Apple (which, with my luck,…
Mike McMaster
  • 7,573
  • 8
  • 37
  • 42
3
votes
1 answer

Problem with XML Parser

I am using the XML Parser available here: http://www.saygoodnight.com/2009/08/a-simple-quick-reusable-xml-parser-for-the-iphone/ I chose it because I simply couldn't get the regular one to work with my webpage. This one does work however, as in the…
John S.
  • 31
  • 3
3
votes
1 answer

How To read XML 'local file' and Parsing in Cocoa Touch

I can read remote XML with the following code: -(id)loadXMLByURL:(NSString *)urlString { tweets = [[NSMutableArray alloc] init]; NSString *filePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:urlString]; NSURL…
jbernardo
  • 161
  • 1
  • 4
  • 14
3
votes
2 answers

NSXMLParser & Problem

My xml is Baby 244 Boats & Watercraft 1026 I am getting first two nodes.My problem is the third node i am getting Boats only (parser…
Rams
  • 1,721
  • 12
  • 22
3
votes
2 answers

Memory Leak Using NSXMLParser in NSConcreteMapTable

I'm using NSXMLParser and I get a memory leak that points to NSConcreteMapTable, whatever that is: The leak occurs at this line of code when calling the parser from my AppDelegate.m: I have searched for a solution and can't see what I'm doing…
Lauren Quantrell
  • 2,647
  • 6
  • 36
  • 49
3
votes
2 answers

NSXMLParser: How to display the response obtained from webservice?

I am using NSXMLParser to parse my data obatained from my webservice. But when I get the data from the server. It gives me Error Code 5. I am not able to see the response that comes from the webservice. I use NSXMLParser *parser = [[NSXMLParser…
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
3
votes
3 answers

Memory buildup when parsing XML into a Core Data store using NSXMLParser

I have a problem with an app that takes an XML feed, parses it, and stores the results into Core Data. The problem only occurs on the very first run of the app when there is nothing in the store and the whole feed is parsed and stored. The problem…
Cocoadelica
  • 3,006
  • 27
  • 30