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

Is there a required context for presentViewController?

My iOS app has a welcome screen (not to be confused with the default view). The view controller downloads and parses an XML file using NSXMLParser. When it completes it's task it makes a button visible, which when clicked calls…
Groppe
  • 3,819
  • 12
  • 44
  • 68
0
votes
1 answer

Multiple UITableView / datasources - how to approach it?

I have an app with four tabs, each tab will hold a UITableView with parsed XML feed. I'd like to be create a scenario much like the App Store, which has a number of tabs, and some of the NavigationControllers have a SegmentedControl in the top. I'd…
runmad
  • 14,846
  • 9
  • 99
  • 140
0
votes
2 answers

Parse xml value from xml file in server of this sample code

I've created an app using xml parser from a tutorial.But this tutorial found to be easy.In this an xml file is parsed from local xml..But if i need to parse an value from xml file say www.xxxxx.com/xxx.xml..how can i modify the code...Guidance…
Vishnu
  • 2,243
  • 2
  • 21
  • 44
0
votes
1 answer

NSXMLParser gives EXC_BAD_ACCESS only with ARC enabled

Well, the subject pretty much says it all. I have code to unzip and parse an epub. It works fine if I don't use ARC, but I get a EXC_BAD_ACCESS if I use the same code (without the retains and deallocs of course) with ARC enabled. The code bombs…
Jomnipotent17
  • 451
  • 7
  • 23
0
votes
2 answers

How to correctly format XML for iOS parsing

I am in the process of writing some code to parse questions into objects. I am using NSXMLParser. The problem is, I also formatted my own XML data, and I think it is incorrect.
scord
  • 1,375
  • 1
  • 17
  • 34
0
votes
3 answers

Get date when a xml was created NSXMLParser

I am having a pretty big xml file (17 MB) on a webserver, which is constantly updated (once or twice a month). I take the XML and parse it to Core data, when the user triggers an update. Now I want to check during my Apps wake/start up if the…
Amandir
  • 679
  • 1
  • 7
  • 20
0
votes
1 answer

NSXMLParser stops right after it starts

Im practicing RESTKit, and so I'm building a Dribbble client to get the hang of REST, i get the XML response successfully, but when i use NSXMLParser to parse it, it logs start, then stop immediately after, how can i fix it, or just make it easier…
Maximilian Litteral
  • 3,059
  • 2
  • 31
  • 41
0
votes
1 answer

How to avoid duplicate Core Data elements in NSXMLParser?

I am reading an XML file that basically looks as follows: Tom Dick Harry John
gbroekstg
  • 1,055
  • 1
  • 10
  • 19
0
votes
2 answers

NSXMLParser error when encountering a 'special' character

I am trying to use NSXMLParser to parse an XML file that looks something like this: John José
gbroekstg
  • 1,055
  • 1
  • 10
  • 19
0
votes
0 answers

IOS: nsxmlparser with special characters

In my app I do an xmlparser but I have a problem during parser because in a tag I have a special letter "è" and it read it as "\U00e8"; and it close a tag of my xml...and I have an error in my parsing... I set my path in utf-8 in this way NSString…
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
0
votes
1 answer

XML parsing in iOS, unable to get the values

I have been trying to do XML parsing in iOS. But I was not able to parse it unfortunately. Can you help me with this. I was using a SAX parser using NSXML. The data is
nithinreddy
  • 6,167
  • 4
  • 38
  • 44
0
votes
1 answer

iOS - Expand local XML file

I'm loading a XML file from an PHP API on my server. This XML is written down to the Documents folder. I now want to get new XML Data from the API and don't want to download the whole file again, because it is very large. So I thought of sending the…
Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107
0
votes
1 answer

How does NSXMLParser differentiate between different elements?

I just did a tutorial on NSXMLParser. What I am completely at a loss at is how NSXMLParser differentiates between different elements. To me it seems undefined. This is my XML
Brockman
  • 9
  • 1
0
votes
2 answers

NSXMLParser does not finish file

I am parsing an XML file in my app and the oddest thing happens. It stops after a number of elements, not finishing that element yet the parse method still returns succes. I have the feeling it is a wrong character somewhere but cannot figure it…
ophychius
  • 2,623
  • 2
  • 27
  • 49
0
votes
1 answer

I'm still having UTF-8 encoding issues with NSXMLParser

So I fixed my XML file and the PCDATA was indeed caused by the wrong encoding (ISO8859-1 wasn't right, see my previous question), but I still have incorrect chars using both ISO-8859-1 or UTF-8 encodings. The problem is when I parse my file and get…
Rob
  • 15,732
  • 22
  • 69
  • 107