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

XML parsing in iphone with authenticate url

I am doing xml parsing while my url is authenticate url with username and password. When I put this url into a browser it asks me for username and password for login. I want to parse this url in iphone using NSXMLParser. For parsing, I'm using the…
gaurav
  • 357
  • 1
  • 4
  • 13
4
votes
3 answers

How to save nsdictionary of a subview to a mainview based off tableviewcell selection

I am currently parsing some xml that looks like this I parse it so that there is an…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
4
votes
2 answers

how to parse xml for ios development

So I know how to parse some XML structures but I am currently trying to parse this specific xml structure thats a bit different to what I am used to. normally I would parse something like Forrest 25 …
C.Johns
  • 10,185
  • 20
  • 102
  • 156
4
votes
2 answers

Parsing inner HTML iteratively using Hpple parser and NSXMLParser

I have been working on school newspaper app for iPad platfrom. I am using NSXMLParser to get the titles, brief descriptions, and links for each article. In order to get HTML items from each parsed link, I decided to use Hpple parser. I think I am…
SerPiero
  • 53
  • 1
  • 9
4
votes
1 answer

Parse a specific tag and save as String with XMLParser in Swift

I want to parse the below response and save only the "pdf-info" tag's value as a String, let serverResponse = "\n\n\t
Bappaditya
  • 9,494
  • 3
  • 20
  • 29
4
votes
2 answers

Delay UISearchbar parsing

I have a UISearchbar in my app. This is a dynamic search and as the user enters text, a remote database is searched via a remote API call (I think it is through REST). The table view gets refreshed dynamically, as the user types. I am using…
hmthur
  • 2,545
  • 3
  • 20
  • 18
4
votes
1 answer

How to parse XML with special characters?

Whenever I try to parse XML with special characters such as ō or 満月先生 I get an error. The xml documents claims to use UTF-8 encoding but that does not seem to be the case. Here is what the troublesome text looks like when I view the XML in…
Snooze
  • 499
  • 1
  • 5
  • 14
4
votes
1 answer

Path to file in app bundle

I did this many times before but now it fails. I want to access a file shipped within my app. NSString* path = [[NSBundle mainBundle] pathForResource:@"information" ofType:@"xml"]; returns /Users/eldude/Library/Application Support/iPhone…
El Dude
  • 5,328
  • 11
  • 54
  • 101
4
votes
1 answer

Parse Google autocomplete XML on iPhone

I'm trying to get Google search autocomplete working in my app, but I've run into some trouble. I'm using a UISearchBar and it's textDidChange delegate method to do so. When the text changes, I use NSXmlParser to read an XML file like this…
JohnWickham
  • 571
  • 1
  • 6
  • 15
4
votes
1 answer

Parsing iTunes Library XML in Cocoa

So I want to scan a large XML file (40mb) and as far as I understand I should use NSXMLParser to reduce the memory footprint. I want to check each song for a couple things, then if it passes all the criteria, write the songs into a new xml file. …
urbanrider
  • 231
  • 5
  • 14
4
votes
0 answers

NSXMLParser failed in iOS 6 with NSXMLParserNAMERequiredError

I am facing parsing failed issue in iOS 6 only. The code is working previous versions of iOS 6 ,but not working in iOS 6. I am trying to send login request to server url. I am getting the response from server in xml format. I am using NSXMLParser to…
4
votes
1 answer

NSXMLParser: Error while trying to resolve and parse external entity

I'm currently trying to parse an XML, which includes another XML, using external parsed entitiy references. However, NSXMLParser throws an error instead of parsing the included XML. The xml looks somewhat like this:
Ben-G
  • 4,996
  • 27
  • 33
4
votes
3 answers

AFHTTPClient - Parsing response object

I just started using AFNetworking and I'm trying to learn how to do it correctly. I subclass the AFHTTPClient and created my own MyAppClient with the right base URL. I'm communicating with my server with HTTP POST request and server response with…
Eyal
  • 10,777
  • 18
  • 78
  • 130
4
votes
2 answers

Using NSXMLParser initWithStream: no parser delegate methods received

The basic problem I'm working on is using the NSStream classes to parse incoming incremental XML data. The data is never a complete XML Document, but I want to receive and process it in incremental chunks based off how much ever the socket can…
John Drake
  • 183
  • 1
  • 8
4
votes
3 answers

NSXMLParser shreds umlauts (ä, ö, ü)

I use NSXMLParser for parsing XML documents of a server. They are encoded as UTF8. My problem is, that NSXMLParser breaks at umlauts (ä, ö, ü) and starts a new element. For example: Lösen -- NSXMLParser ---> L + ösen How do I get NSXMLParser to read…
Stefan
  • 28,843
  • 15
  • 64
  • 76