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

Receiving Error With NSXMLParser: [Parser conformsToProtocol:]: Message sent to deallocated instance 0xcd6be20

I am receiving this error from the NSXMLParser when I pop the NSXMLParser view controller, and then go back to it later on. 2010-12-31 21:49:32.306 App Name[12716:207] *** -[Parser conformsToProtocol:]: message sent to deallocated instance…
max_
  • 24,076
  • 39
  • 122
  • 211
3
votes
3 answers

Memory Leaks with NSXMLParser

I'm working with NSXMLParser and parsing a number of .xml file in the same class by calling the below method. [[NSURLCache sharedURLCache] setMemoryCapacity:0]; [[NSURLCache sharedURLCache] setDiskCapacity:0]; NSString *xmlPath = [[NSBundle…
Jasveer
  • 209
  • 2
  • 8
3
votes
3 answers

iPhone NSXMLParser (Error 9)

i try to parse within my iPhone SDK 4 http://de.news.search.yahoo.com/news/rss?p=iphone&ei=UTF-8&fl=0&x=wrt there are some german umlaute As I read in…
christian Muller
  • 5,016
  • 6
  • 34
  • 44
3
votes
1 answer

NSXMLParserDelegate and iPhone SDK 3.1.X

I have an app on the store which was built for 3.1.2, but which was crashing under 4.0GM. I've fixed the crash problem using Xcode 3.2.3, but was also getting warnings that such-and-such class did not implement NSXMLParserDelegate. I added to the…
Ben Williams
  • 4,695
  • 9
  • 47
  • 72
3
votes
0 answers

NSXMLParser: EXC_BAD_ACCESS error

I'm newish to Swift, and not a regular coder anymore so apologies, chance are I'm missing something obvious! I have an NSXMLParser class that is giving me a EXC_BAD_ACCESS fault when attempting to add a result item to an array. I believe (using…
Ian J
  • 31
  • 1
3
votes
1 answer

NSXMLParser on iOS, how do I use it given a xml file

I was wondering how do I use the NSXML parser. so lets say given I have a simple xml file with elements like: 1/1/1000 How could I use the NSXMLParser to parse the XML File (It's on locally btw,…
Kenneth
  • 677
  • 3
  • 10
  • 24
3
votes
1 answer

NSXMLParser didStartElement getting attributeDict issue

I'm trying to get the attributeDict in the NSXMLParser didStartElement. My issue is I'm getting an error in calling the attributeDict (Could not find an overload for 'subscript' that accepts the supplied arguments). Am I calling the method right? I…
CAN
  • 1,677
  • 4
  • 19
  • 28
3
votes
5 answers

Remove whitespace within XML fields using Java

I'm facing an issue with removing whitespaces within the value fields in the xml data. eg: Input
shockwave
  • 3,074
  • 9
  • 35
  • 60
3
votes
3 answers

Accessing values of elements when using NSXMLParser in Swift

I am trying to parse the XML on http://apps.wku.edu/iwku/maps/buildings/data/SouthCampus-Buildings.xml Using the following code in a Swift Playground import UIKit var str = "Hello, playground" class Parse: NSObject, NSXMLParserDelegate{ func…
DosCadenas
  • 95
  • 1
  • 10
3
votes
0 answers

How to Get HTML tag which seen in UIWebView Screen out of all HTML tag loaded in UIWebView

In my UIWebView I loaded the "Chapter.xhtml" file like this. [webView loadRequest:[NSURLRequest requestWithURL:url]]; and the whole Chapter.xhtml is loaded in webView. I am showing it with some JavaScript logic in the webview. float…
Sam
  • 431
  • 7
  • 23
3
votes
2 answers

How to Parse an XML (using XELement) having multiple Namespace?

I get the followinng Xresponse after parsing the XML document:
Simsons
  • 12,295
  • 42
  • 153
  • 269
3
votes
2 answers

Parsing ISO-8859-1 w/ NSXmlParser

I am usin the nsxmlparser and am wondering how I can parse ISO-8859-1 correctly into an NSString. Currently, I am getting results w/ Â for two-byte characters. The XML I'm using (not created by me) starts with
Ternary
  • 2,401
  • 3
  • 31
  • 54
3
votes
4 answers

What has an namespace to do with XML?

Something confuses me here: The NSXMLParser method has a namespaceURI attribute: - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName From the…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
3
votes
2 answers

How add a default value to an array when child element is not found in xml parsing?

I am new to iphone development.I am parsing an XML page and displaying the content in a tableview.In some block in the XML page , the child element is missing , i want to add a value o in my array, when the child element is not fond in the…
Warrior
  • 39,156
  • 44
  • 139
  • 214
3
votes
2 answers

setbackground loading with do while loop

i am working on an application where i check for url using following code. -(void)exists { NSString *strImg = @"some url"; NSURL *aImgUrl = [NSURL URLWithString:strImg]; NSMutableURLRequest *imgRequest = [NSMutableURLRequest…