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
6
votes
5 answers

iOS8 NSXMLParser crash

I had a crash in NSXMLParser * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSXMLParser does not support reentrant parsing.' Here is my code NSString *wrappedSnippet = [NSString…
CrimeZone
  • 230
  • 2
  • 13
6
votes
7 answers

NSXMLParser Memory Allocation Efficiency for the iPhone

I've recently been playing with code for an iPhone app to parse XML. Sticking to Cocoa, I decided to go with the NSXMLParser class. The app will be responsible for parsing 10,000+ "computers", all which contain 6 other strings of information. For my…
Staros
  • 3,232
  • 6
  • 30
  • 41
6
votes
1 answer

iOS NSXMLPARSER Parsing Media Content Tag Inside RSS Feed

I am using NSXMLParser to parse RSS feed. Earlier i was using the image url from cdata block but now i have come across a feed that has the image url inside
AJ112
  • 5,291
  • 7
  • 45
  • 60
6
votes
2 answers

Getting data of Child Element from its Parent counterpart

im trying to parse the child data which is sub_category and show it, but will only show the relevant sub_category of the parent category. I was sucessful in parsing the data of the parent element but im having a problem on how to parse the child…
Ace Munim
  • 325
  • 3
  • 18
6
votes
2 answers

Learn about the NSXMLParser in iOS

I learn about current NSXMLParser. I read many tutorials but none could tell me exactly how it works. there is a tutorial on StackOverflow? My problem is this KML read structur in my app and display with MKMapView My Parser class looks like: #import…
CTSchmidt
  • 1,155
  • 3
  • 17
  • 30
5
votes
1 answer

Get an HTML page as XML code

I just learnt about how to parse data in Xcode using NSXMLPARSER. In order to do that, obviously, I will need xml files, but I am still a beginner with web programming. I am having difficulties getting an xml file from a web page. I tried to…
Guy Daher
  • 5,526
  • 5
  • 42
  • 67
5
votes
4 answers

Parsing xml in NSXMLParser

I have read many examples of how to get text out of xml files, but just don't get how to. Here is a sample xml file: Question Answer
blake305
  • 2,196
  • 3
  • 23
  • 52
5
votes
1 answer

Handling an attribute of an XML element in Swift

I want to read the url attribute from this element by using NSXMLParser: I found this resource on Apple site but it's for…
johncoffey
  • 251
  • 3
  • 12
5
votes
5 answers

NSXMLParserErrorDomain 111

The code below is printing the following message: Error Domain=NSXMLParserErrorDomain Code=111 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 111.) mainUrl = [NSURL URLWithString:@"http://www.carris.pt/pt/carreiras"]; NSString…
pedroremedios
  • 763
  • 1
  • 11
  • 39
5
votes
3 answers

What is the meaning of NSXMLParserErrorDomain error 5.?

Ok, I am back on this task. I have my XML properly download from my webserver with a URL pointing to the server's file, however, when I detect the network is 'unreachable' I simply point the URL to my application's local XML and I get the following…
mobibob
  • 8,670
  • 20
  • 82
  • 131
5
votes
2 answers

When parsing with NSXMLParser, does it download the whole .xml then parse, or does it do a streaming parse?

Programming for iPhone. When parsing with NSXMLParser, does it download the whole .xml then parse, or does it do a "streaming" parse? Essentially if I abort the parse halfway through, do I save bandwidth, or just cpu cycles?
shane
5
votes
1 answer

NSXMLParser can not parse special characters (german & french)

I am working on an App, which makes a search on a private server and shows the results to the user. The problem is NSXLParser can not parse the special german and french characters. For example: it should be:(Geschäftsführer) -> what i get is:…
Zer0
  • 113
  • 10
5
votes
1 answer

Parsing XML CDATA Blocks

I'm attempting to parse an XML file (using NSXMLParser) from the website librarything.com. This is the first file I have ever parsed, but for the most part it seems fairly straight forward. My problem occurs when trying to parse a CDATA block; the…
Scott Mielcarski
  • 760
  • 6
  • 17
5
votes
4 answers

Use NSXMLParser to only parse the first ten posts, then parse next lot separately

I am using NSXmlParser to parse through an rss feed. All is working well so far. I'm anticipating the rss feed will eventually contains dozens/hundreds of posts. My current solution is reading the entire rss feed and displaying the results. However…
Andrew Davis
  • 2,310
  • 1
  • 24
  • 43
5
votes
1 answer

Xcode "AppDelegate *const __strong' to parameter of incompatible type" error

When I declare appDelegate interface as follows in order to set NSXMLParserDelegate, I receive some warnings from other views that are using [[UIApplication sharedApplication] delegate]; @interface AppDelegate : UIResponder
Jaume
  • 3,672
  • 19
  • 60
  • 119
1 2
3
84 85