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

adding NSMutableDictionary to NSMutableArray returning null

Iam consuming XML response and parsing it..However when Iam adding the objects to NSMutableDictionary and then to nSMutableArray the response is null.I couldn't understand where iam going wrong? My Xmlresponse is like this:
cutiepie
  • 29
  • 1
  • 8
-1
votes
1 answer

How to use NSTimer with data from NSURL pass to NSXMLParser display in TableView

How to use NSTimer with data from NSURL pass to NSXMLParser display in TableView I have application display data from web server by PHP gen' to XML In my xcode i use NSURL for connect to PHP file (in web server) and use NSXMLParser to read XML data…
Vasuta
  • 141
  • 1
  • 2
  • 12
-1
votes
2 answers

NSXMLParser:foundCharacters throwing 'Attempt to mutate immutable object with appendString:'

I have a problem when parsing an XML feed. There are approximately 15 child nodes per parent node. Currently I am parsing all nodes using stringbytrimmingchartersinset: then NSCharacterset whitespaceandnewline characterset. Like so: - (void)…
kev
  • 2,306
  • 3
  • 26
  • 31
-1
votes
1 answer

NSXMLParser - Not parsing the attributes with same node value

I am parsing the below xml in iOS. John Smith Steve Irwin I wrote the below code. I need John Smith in the string…
Pras
  • 243
  • 1
  • 13
-1
votes
1 answer

xml parsing run but no data displayed

This is the code of my app . The applications runs but there is no data displayed , can you help me to fix this problem ? In .h file: @interface MyData : NSObject { NSMutableString *currentElementValue; …
user1503496
  • 191
  • 4
  • 13
-2
votes
1 answer

Local XML file is not parsing?

In My iphone application i have two XML files. I can parse one.xml eailsy but i am not able to parse two.xml I have use the same tags for both files. In parsing two.xml the method didStatrElement is not calling. Why is thereany problem in file. If…
KAREEM MAHAMMED
  • 1,675
  • 14
  • 38
-2
votes
4 answers

How to parse the XML data and store in variables?

Weather Underground NOAA Weather Station http://wunderground.com/
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
-2
votes
1 answer

XMLParser splits elements on “ß” character

I have this code in an iOS Playground (Swift 3, Xcode 8.2.1): import UIKit import PlaygroundSupport PlaygroundPage.current.needsIndefiniteExecution = true class ParserDelegate: NSObject, XMLParserDelegate { @objc func parser(_ parser:…
Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
-2
votes
1 answer

Load XML file from main Bundle in Swift 3.0

I have a .GPX file contains routing info of a hiking trip which I want to load into my app. Everything is ok if I load it from remote URL (https://dl.dropboxusercontent.com/u/45741304/appsettings/Phu_si_Lung_05_01_14.gpx) but I can't load this same…
HoangNA
  • 163
  • 1
  • 12
-2
votes
1 answer

iOS Fail to display NSMutableArray to TableView

Below is my .m file. I have declare NSMutableArray in .h file but it still can't display my array from xmlparser to UITableView. Please guide me thru the code below. Most probably is my tableview codes as I am able to log out the datas from feed…
zac
  • 83
  • 12
-2
votes
1 answer

IOS How to parse the xml retrieve the element to put in an array and display in UITableView

- (void)viewDidLoad { [super viewDidLoad]; NSLog(@"Response recieved"); output= [[NSMutableArray alloc] init]; // NSString *severity = @"Informational"; NSString *soapMessage = @"" …
zac
  • 83
  • 12
-2
votes
2 answers

Adding thumbnails through NSXMLParser

I have successfully parsed XML data into my iOS application so now it displays all the most recent blog posts, however I need help on how to access the thumbnail images from the xml files. You can use this link to better see where the image is…
-2
votes
2 answers

Parsing the output of Xpath query

I have the output of my xpath query like by using phhp code - load('info.xml'); $xpathvar = new Domxpath($xmldoc); $queryResult =…
Newbie
  • 9
  • 5
-2
votes
1 answer

Parse a SOAP response in objective-c

After a few hours of research, i'm not able to parse a soap response. I don't have used WSDL2OBJC or SudZc for parsing my WSDL file, I have used SoapUI which returns XML. For an example of how it looks like :
DarkRainbow
  • 97
  • 1
  • 5
-2
votes
2 answers

NSXML Parser in iphone

I need to get the value of the following xml , I am using NSXML parser for parsing this true I need to get the "true " value from the above xml . What should I do inside…
Melbourne
  • 531
  • 3
  • 24
1 2 3
84
85