nsxmlparser

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, will not be reproducible in sample code), has anyone run into this and know what might b...

Datatypes for use with NSXMLParser

I'm using NSXMLParser to parse XML data from a remote server. I followed this tutorial to get up and running and everything is ok for any (NSString *) members I have in my objects that I'm creating. I also have integers that I need to set from the XML data, such as: <root> <child> <name> Hello </name> <number> 123 </...

Accessing objects in different controllers while using different threads in cocoa

Hi, I'm pulling in xml using the cocoa NSXmlParser. Since this process most likely won't finish before my view is loaded I want to move it to a secondary thread like I have seen in many examples including the seismicxml example on the apple site. The flow of my application is as follows. I have a table view which cells can be clicked t...

When release NSXMLParser ?

Hello all, I am using NSXMLParser like this : - (BOOL)parseXMLData:(NSData *)inData { provisioningParser = [[NSXMLParser alloc] initWithData: inData]; // defined if .h [provisioningParser setDelegate:self]; [provisioningParser setShouldProcessNamespaces:NO]; [provisioningParser setShouldReportNamespacePrefixes:NO]; [provisioningP...

iphone development

Hello,I am still new in objective-c. I want to create an application on iphone in which I take a data from XML using NSXMLParser. so when I start the application It will read the XML and data are coming from that,but in between in running appliaction if the XML is updated then how can my application know about it and get that refreash da...

Problem with word "Nestlé" in an XML doc (UTF-8 encoding) using NXXMLParser. Any idea?

Hi all, We are using NSXMLParser in Objective-C to parse our XML document, which are all UTF-8 encoded. One document has a string "Nestlé" in it (as in ...<title>Nestlé Novelties</title>...). The parser just quit, reporting an error with error code=9, due to the French letter "e" at the end of the word "Nestle". Furthermore, we tried us...

Cocoa: NSXMLParser - howto resolve entities defined in DTD

Hi, I use NSXMLParser to parse large XML files-- going good BUT :) I cant get the parser to resolve the external entities from the DTD. I googled and read documentation and older mails... and I did set parser.shouldResolveExternalEntities = YES I do get: - (NSData *)parser:(AQXMLParser *)parser resolveExternalEntityName:(NSString *)nam...

Problem with XMLParser and MutableArray

Hi! I have followed this tutorial and the parsing part is working allright. My problem is that when printing out the values that I store into the object (in my case the object is a car) always remains null. I save all the objects into an MutableArray which always seems to have a length/count == 0...what am I doing wrong? The array is, ...

Gracefully Halting NSXMLParser?

Hello there, still new to XML parsing with the iphone so i have a few questions. in my opinion, id like my iphone-app to have to request out to the internet as less as possible, so i have combined a few XMLs i had to a single, larger one. However when im parsing information out, it has some similar node-names (not at the same level o...

NSXMLParser shreds umlauts (ä, ö, ü)

Hi, 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 my umlaut words completely, as every other word. Regards ...

Parsing multiple XML files into one or more Object-classes?

My app is made up of a TabBarController, each tab with a UITableView. On launch I parse an XML file from my server into an Object class and then display the objects in the first tableview. My question is, what do I do when I want to parse a second XML file? Currently, when doing so, the information in "XML-file-2" will overwrite the ob...

Using NSXMLParser with CDATA

I'm parsing an RSS feed with NSXMLParser and it's working fine for the title and other strings but one of the elements is an image thats like <!CDATA <a href="http:image..etc> How do I add that as my cell image in my table view? Would I define that as an image type? This is what i'm using to do my parsing: - (void)parser:(NSXMLPars...

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 like to know how it's done? Is there a NavigationController that swaps a view controller ...

NSXMLParser rss issue NSXMLParserInvalidCharacterError

NSXMLParserInvalidCharacterError # 9 This is the error I get when I hit a weird character (like quotes copied and pasted from word to the web form, that end up in the feed). The feed I am using is not giving an encoding, and their is no hope for me to get them to change that. This is all I get in the header: < ?xml version="1.0"?> <...

NSXMLDocument class in iPhone Device 2.2

hi i developed one iPhone application, i have used the class "NSXMLDocument" it is working fine in simulator 2.2. but when i select Device 2.2 it is not woking.. i got the error message that " error: 'NSXMLDocument' undeclared (first use in this function)",, any idea to solve this .. by Abjal ...

NSXMLParser Encoded by Windows-1252

So NSXMLParser has problems parsing strings using the Windows-1252 encoder. Now I did find a solution on this page to convert it to NSUTF8StringEncoding. But now it bumps into characters it can't parse. So I figured out that it will work if I would escape special characters and then transfer it back after parsing it. For example: strin...

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

Programming for iPhone. Title says it all. 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? ...

Show loading screen while parsing, then refresh UITableView?

I have a UITableView with the following code: - (void)viewDidLoad { [super viewDidLoad]; parser = [[XMLParser alloc] init]; [parser parseXML]; My problem is that the launch takes too long because it's parsing everything before displaying the view controller with the UITableView. Also, if I set up another UITableView and pa...

NSXMLParser Question

I am trying to figure out NSXMLParser for my iPhone app and while I generally understand how it works, I am still a little confused about how to extract the values I need. The XML result that I am parsing is very basic. it is like so: <start> <status>300</status> <record> <title>The Title</title> <content>Some content</content> ...

Parsing an XML file stored in the Documents directory of an iPhone application

NSXMLParser has three types of init. -> init -> initWith Data -> initWithContents of URL => But my xml file is stored at Application's Document directory, so how to parse a file which is stored at "Doc Dir" Thanks in advance. ...