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
-1
votes
2 answers

Pass NSObject (conditional data) to TableView

Firstly, sorry if the title is confusing, I'm not sure how else to word it. I'll explain my app briefly. User is presented with a Login screen (very basic, no server-side stuff), in which they can log in to three different companies (Company A,…
rosshump
  • 370
  • 1
  • 4
  • 21
-1
votes
1 answer

Convert TBXML parser to NSXML parser

I am developing an app for iOS device in Xcode6 (just updated from xcode5) where at some point the user pushes a button and then a tableview is seen with information nicely incorporated in each cell, this information is details of a corresponding…
-1
votes
1 answer

Problems with NSXMLParser using single quotes

It should store this string: Jim's Random topic. But it stops at the single quote. So it stores Jim. < title >Jim' ;s Random topic' ;s about stupid semicolon' ;s < /title> XMLParser.m (Simplified) typedef enum MESSAGE_TYPE { TITLE =…
Jim Clermonts
  • 1,694
  • 8
  • 39
  • 94
-1
votes
1 answer

Get string form XML file by attribute

I have a XML file Hotel Home Castle ... I tried got content string (Hotel or Home ...) in using special name of this (aaa, bbb…
ALuc
  • 3
  • 2
-1
votes
1 answer

XMLParser - how do I parse parent / child relationship

I have an XML file that looks something like this: [...] ... [...] ... I have a local core data database where my parent entity can have many child's. The parent entity is the…
Anders
  • 2,903
  • 7
  • 58
  • 114
-1
votes
1 answer

How to parse a XML Documents Into a NSMutable Array

I have a response from web service in the following format,which gives me Employee's personal information, what is the best way to parse and store these contact in a mutable array. jim
Rishi
  • 1
  • 1
-1
votes
3 answers

Activity indicator on table view in iOS

I have a table view containing parsed NSXML objects. I want to implement an activityIndicator in this tableview, such that when data loading is complete the activityIndicator stops automatically. How to do this? Thanks in advance
Praphin SP
  • 69
  • 1
  • 14
-1
votes
1 answer

NSXML didStartElement method not being called

Iv'e set my h as the delegate and I'm calling the "setDelegate:self" method on my xml parser. here is my code. -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString…
Ompel
  • 703
  • 4
  • 10
-1
votes
2 answers

NSXML parser, where does the program flow go?

I used NSXML parser to parse a SOAP response XML i recieved from the web service. In my root method, NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self]; I used this code to send my SOAP request,…
yabtzey
  • 391
  • 1
  • 7
  • 17
-1
votes
2 answers

Parse XML Data response

I need help to parse data response. When I send parameter to Web Service then Web Service will give data in response I'm used wsdl2objc for( ; cur != NULL ; cur = cur->next) { if(cur->type == XML_ELEMENT_NODE) { …
-1
votes
2 answers

Yahoo weather API using NSXMLParser

This is the documentation provided by Yahoo: http://developer.yahoo.com/weather/ At the moment this is my code: NSString *location = @"Palermo"; NSString *temperatureUnit = @"c"; NSString *address =…
Massimo Piazza
  • 663
  • 3
  • 7
  • 21
-1
votes
2 answers

How to parse special characters using NSXMLPARSER

Hi in my application I have to parse the xml file.That file have few special characters like apple&iphone ,here NSXMLPARSER cannot able to read this tag, It's reading only iphone not apple&iphone. Please show me the solution how to read these type…
Naresh
  • 363
  • 1
  • 18
-1
votes
1 answer

NSXMLParser doesn't parse some of the content

My iOS app parses xml that is fetched from a remote server (and that I can't influence in any way). When it encounters an xml tag like the following: this is a content string It only parses…
LaK
  • 99
  • 1
  • 7
-1
votes
1 answer

Trying to parse xml list without parent node using NSxmlparser

I have already read about NSxmlparser. I have the following file, but I do not understand how I should do for the parser. i Trying to parse xml list without parent node using NSxmlparser txt1
-1
votes
1 answer

NSXMLParser cant able to add all objects in iPhone?

When I try to parse the XML file using NSXMLParser I couldnot parse all the elements .. XML response looks like this:
1 10/31/2012
07405
  • 193
  • 4
  • 14