Questions tagged [nsxmlparserdelegate]
16 questions
2
votes
1 answer
Parsing Hierarchical XML in Swift using NSXMLParser
I'm really having problems getting hierarchical XML values back in a form that I can actually use, so any assistance would be much appreciated. I'm pretty new to Swift and IOS development, so to be honest I do not fully understand the parser, but I…

Dave
- 351
- 4
- 18
2
votes
3 answers
NSXMLParser on iOS8 - NSXMLParser does not support reentrant parsing
I have NSXMLParser problem, and i tried iOS8 NSXMLParser crash this topic, but i really did not get the solution.
I am creating another NXSMLParser delegate and setting its delegate in another class.
Could you please tell me what to do exactly, step…

erdemgc
- 1,701
- 3
- 23
- 43
2
votes
2 answers
delegate methods are not called and parse property is always FALSE
I am trying to parse an xml feed on the app delegate didFinishLaunchingWithOptions: method:
//Parse XML Data
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://xxxxxxxxxxxxxxxxx/xml"]];//url is just…

Malloc
- 15,434
- 34
- 105
- 192
1
vote
1 answer
Swift NSXMLParserDelegate doesn't get called
I have a weird problem. The weirdness comes from the fact that the code executes just perfect in playground but it doesn't in simulator...
Long story short, I have a class which should parse a document which I lazy instantiate and invoke the…

Razvan Soneriu
- 587
- 3
- 7
- 23
1
vote
0 answers
XML DTD parsing - foundElementDeclarationWithName: not passing any value in model
For a DTD such as below, NSXMLParser does not seem to be returning anything in the model argument of foundElementDeclarationWithName. What am I missing here?
DTD -

OutOnAWeekend
- 1,383
- 1
- 18
- 36
1
vote
1 answer
Add an argument to a protocol (delegate)
I want to add an argument to a delegate methode (From NSXMLParserDelegate)
this is the method so far :
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{
// save the characters for the current item...
if ([string …

The Fonz
- 207
- 1
- 4
- 14
0
votes
1 answer
Duplicate data while NSXMLParser reading xml-file
I've such xml-file:
assets/_image.png
-
my_way
-

pragmus
- 3,513
- 3
- 24
- 46
0
votes
1 answer
How to reload or update a viewController's view once a file is saved
Is it possible to reload/update a viewController's view once a file gets saved in the documents folder?
If yes, kindly suggest how to accomplish this.
I'm trying to save a file in AppDelegate, but as it involves XML parsing, it is saved only when a…

Prashant
- 336
- 3
- 18
0
votes
0 answers
Data won't load after XML parsing
I'm new to iOS and I have been trying to implement XML parsing.
I'm using a custom class(XMLParser) for XML parsing, provided by Gabriel Theodoropoulos.
I'm trying to load and save data when the app launches.
The data is parsed and saved too, but…

Prashant
- 336
- 3
- 18
0
votes
0 answers
Swift - Unstable XML parser
I am building XML parser in swift and I faced several problems. First: Xcode sometimes throws new errors such as BAD_ACCESS and sometimes works perfectly. Second: same situation, I sometimes get error on converting pubDate which get as string to…

Robert Kim
- 133
- 1
- 2
- 8
0
votes
1 answer
NSXMLDelegate in Swift issues
I am trying to implement an NSXMLParserDelegate in Swift but I am having issues using the attributes dictionary in some of the delegate methods. For instance, in parser:didStartElement::
func parser(parser: NSXMLParser!, didStartElement elementName:…

izk
- 1,189
- 2
- 8
- 23
0
votes
1 answer
Running protocol methods from another class - Objective-C
I have three different classes, one of them is parsing xml from a certain website and the two other will be recieving the information from the class that is running the NSXMLParserDelegate protocol methods. My question is, how do i tell the class to…

Forever a noob
- 689
- 1
- 9
- 16
0
votes
1 answer
Trouble Parsing XML and fetching data
I have need to parse the following xml from webservicex.net, for and iPhone App. I need to store the verse Verse and BibleWords into some NSArray/NSDictionary or something.
…