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.
Harikrishnan
  • 7,765
  • 13
  • 62
  • 113
0
votes
1 answer

what test should be put to get nested element

Here is the case, title exist in two occurrences, before and after entry: http://xxxxx/xmlxxxxx: Top…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/ios" class="post-tag grid--cell" title="show questions tagged 'ios'" rel="tag">ios</a> <a href="../../questions/tagged/nsxmlparserdelegate" class="post-tag grid--cell" title="show questions tagged 'nsxmlparserdelegate'" rel="tag">nsxmlparserdelegate</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 20 '13 at 15:17">asked Jul 20 '13 at 15:17</time> <a href="../../users/602257/malloc" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/602257.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Malloc" /> </a> <div class="s-user-card--info"> <a href="../../users/602257/malloc" class="s-user-card--link">Malloc</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">15,434</li> <li class="s-award-bling s-award-bling__gold" title="34 gold badges">34</li> <li class="s-award-bling s-award-bling__silver" title="105 silver badges">105</li> <li class="s-award-bling s-award-bling__bronze" title="192 bronze badges">192</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-20622923"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>-1</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/20622923/nsxml-didstartelement-method-not-being-called" class="question-hyperlink">NSXML didStartElement method not being called</a></h3> <div class="excerpt">Iv'e set my h as the delegate and I'm calling the "setDelegate:self" method on my xml parser. here is my code. -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/ios" class="post-tag grid--cell" title="show questions tagged 'ios'" rel="tag">ios</a> <a href="../../questions/tagged/objective-c" class="post-tag grid--cell" title="show questions tagged 'objective-c'" rel="tag">objective-c</a> <a href="../../questions/tagged/nsxmlparser" class="post-tag grid--cell" title="show questions tagged 'nsxmlparser'" rel="tag">nsxmlparser</a> <a href="../../questions/tagged/nsxml" class="post-tag grid--cell" title="show questions tagged 'nsxml'" rel="tag">nsxml</a> <a href="../../questions/tagged/nsxmlparserdelegate" class="post-tag grid--cell" title="show questions tagged 'nsxmlparserdelegate'" rel="tag">nsxmlparserdelegate</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 16 '13 at 23:16">asked Dec 16 '13 at 23:16</time> <a href="../../users/3097058/ompel" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3097058.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ompel" /> </a> <div class="s-user-card--info"> <a href="../../users/3097058/ompel" class="s-user-card--link">Ompel</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">703</li> <li class="s-award-bling s-award-bling__silver" title="4 silver badges">4</li> <li class="s-award-bling s-award-bling__bronze" title="10 bronze badges">10</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <div class="s-pagination--item is-selected">1</div> <a class="s-pagination--item" href="../../questions/tagged/nsxmlparserdelegate_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/nsxmlparserdelegate_page=2" rel="next" title="Go to page 2"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>