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

Error code 5 in application

I have developed one application to fetch RSS feed. I am getting this error code 5 for some URLs where as som others are working fine. I know this error means the xml is invalid. But for my app, I have not written any xml files by my own. Please…
-1
votes
1 answer

How can I parse such xml having one tags and different arguments in it?

How can I parse such xml, having one node and different arguments in it using NSXMLParser? success 200
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
-1
votes
1 answer

parsing integer value

I have an xml document with the structure like this some number like 456<\id> some name like string<\name> So I parse the document with NSXMLParser and put the result in to an array ogf objects with the structure like the xml entity.…
Petko
  • 1
  • 1
  • 4
-1
votes
1 answer

NSXMLParserErrorDomain error 5 when parsing XML page

I am trying to parse an XML page in Objective-C. The full text of the error is: Error Domain=NSXMLParserErrorDomain Code=5 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 5.)" I am attempting to parse the page like so: NSURL…
John S.
  • 1
  • 1
-1
votes
1 answer

Memory leak NSXMLParser

My NSXMLParser is leaking and I don't know why! Instrument is saying, in the extended details, that the source is 100% from [Parser parse]; Picture: Instruments leaks This is my code for allocating and releasing the NSXMLParser: NSURL *xmlURL =…
Jos
  • 2,421
  • 5
  • 26
  • 30
-1
votes
1 answer

NSXMLParser question

If I am trying to parse multiple xml using NSXMLParser and I try to parse xmls, when my delegate method such as didstartelement, didendelement and foundcharacters is called, how do i know from which NSXMLParser this method is being called for?
sumderungHAY
  • 1,337
  • 18
  • 30
-1
votes
2 answers

Split View iPad - Reload Table Data?

I've created a split view project in Xcode and I'm using an NSXMLParser to retrieve data from and XML file on the Internet. The data comes in fine and assumes the correct structure, but when I test it out, I found that UITableViewDelegate methods…
esqew
  • 42,425
  • 27
  • 92
  • 132
-1
votes
2 answers

Parse XML item "Category" into an NSArray with NSDictionary

Question: The generated XML file from an .XSD template produces the output pasted below. Since category's keys are image, my standard way of parsing the image items wont work on category. I would like to place the category name="Category #" into an…
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
-1
votes
1 answer

NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]

i am trying to parse the tags of xml, but i am not retrieving any value in my table view. Instead application get terminated due to exception. here is my code: - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName …
user720235
  • 85
  • 1
  • 11
-1
votes
6 answers

How to add database and Nsxmlparser into application?

I want to fetch data from webservice and want to display it in to database.
rio
  • 1
-1
votes
1 answer

How to parse the media:group tag in the rss feed in iOS?

I tried to parse the "media:group" tag manually or via FeedKit swift. But getting the nil response for this. Please let me know how to parse this tag. This is url of rss feed http://www.rollingstone.com/music/rss and format is like…
Gopal Devra
  • 787
  • 9
  • 15
-1
votes
4 answers

Why I am not able to replace the NSMutableString value in foundCharacters method of NSXMLParser in objective c?

I am new in iOS and I am facing the problem regarding to replace the string value in foundCharacters method of NSXMLPerser. My code is like this -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string { …
Muju
  • 884
  • 20
  • 54
-1
votes
1 answer

how to parse xml for specific element in swift

I would like to parse student schedule only for the student "Karly". Task here means - classes. So I need to go to student-info first, and find out a student whose name is "Karly" and then parse task for her. Here's my XML:
-1
votes
1 answer

Swift Playground: NSXMLParser / parse() always returns false

here's my code: public class Payment: NSObject, NSXMLParserDelegate { public var buchungsdatum:NSDate public var valutadatum:NSDate public var betrag:Double public var verwendungszweck:String public var creditorIban:String public var…
-1
votes
1 answer

How can I remove CDATA from NSString programmatically?

Here is my string I am stuck at this point. I just want to remove CDATA from this string. Is there…
NSPratik
  • 4,714
  • 7
  • 51
  • 81