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

Getting null back from XML, but only on wi-fi only devices

I have an app that incorporates weather...data that I receive from Google's weather API. I'm busting my brain trying to figure out a problem that I'm having and I've been unsuccessful so I figured it was time to ask around on here. Here is my…
Donavon Yelton
  • 1,227
  • 3
  • 15
  • 24
0
votes
1 answer
0
votes
2 answers

How to parse the xml file have same tag name using nsxmlparser?

How do I parse this type of XML using NSXMLParser userName password
yuvaraj
  • 9
  • 5
0
votes
1 answer

parse error = Error Domain=NSXMLParserErrorDomain Code=5 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 5.)"

-(void)connectionDidFinishLoading:(NSURLConnection *)connection { NSLog(@"3 DONE. Received Bytes: %d", [getMagaListsWebData length]); NSString *recievedXML = [[NSString alloc]initWithData:getMagaListsWebData encoding:NSUTF8StringEncoding]; …
0
votes
2 answers

XMLParser returning "NULL Value"

The service am trying to parse is here: http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false I am trying to parse a simple xml. The structure of the xml looks something like…
footyapps27
  • 3,982
  • 2
  • 25
  • 42
0
votes
1 answer

NSXMLParsing.. parsing xml with same node name and different attribute value

I want to parse the below xml in iOS.. How can i do this.. TEST1 4642664
Pras
  • 243
  • 1
  • 13
0
votes
1 answer

NSXMLParser Big-5 convert to UTF-8

My XML file have the Chinese Characters, which are Big-5, how to convert it to UTF-8 based on below code? - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSString *xmlFilepath =…
Gere Tan
  • 43
  • 5
0
votes
2 answers

How to parse an XML file with NSXML Parser

I has an XML file like this, I am using NSXMLParser to parse it:
tony
  • 15
  • 6
0
votes
1 answer

NSXMLParser along with NSOperation is not working properly

To send request to server to download data I am using NSOperation.After receiving data I am using NSXMLParser to parse response but it is not calling parser delegate methods such -(void)parser:(NSXMLParser *)parser didStartElement:(NSString…
Nuzhat Zari
  • 3,398
  • 2
  • 24
  • 36
0
votes
1 answer

Fetch tag value from html page in iPhone

I am new to iPhone, I want to fetch all the value of tag from my local .html page and i want to store it in my array. For eg: toc.html is my html file, from this file i want to fetch all the value of tag. Here is my html file,…
dhaval
  • 129
  • 1
  • 8
0
votes
1 answer

nil NSXMLparser initialization with data ios

hi guys i get simply nothing (nil value) when i try to initialize my NSXMLparser with data that i get from web service response this is the code i use: header.h NSData*abccc; NSMutableData*conWebMutableData; NSXMLParser*xmlParser; @interface…
user1001635
  • 3,262
  • 3
  • 16
  • 17
0
votes
2 answers

xml parsed image won't work in uitableviewcell

I have successfully parsed the name and it shows up in the cell.textLabel.text but the image on the other hand doesn't show up. It works when I type the name of a local image as the string but when i connect it to the parsed image string it doesn't…
0
votes
1 answer

NSXMLParser with multiple classes

I have got an object serialization from Java into a XML file that I have to deserialize for an iOS App using objective-c. I am using NSXMLParser for the first time and have a given object structure in objective-c. Here is a sample of the XML…
Chris
  • 3,057
  • 5
  • 37
  • 63
0
votes
1 answer

Reloading content using NSXMLParser and UITableView halts app for seconds

I am developing my first app, which takes an XML feed from the web. The first time the XML loads into the TableView, everything is normal, but when I want to reload data by tapping the button, it halts for a few seconds before reloading the XML and…
umefarooq
  • 4,540
  • 1
  • 29
  • 38
0
votes
3 answers

iPhone: How do I "cancel" my xmlparser from parsing in objective c?

In my - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict { …
daveomcd
  • 6,367
  • 14
  • 83
  • 137