Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7873677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:35:03+00:00 2026-06-03T02:35:03+00:00

I am parsing an xml successfuly using NSURLRequest and when connectionDidFinishLoading, xmlParser does the

  • 0

I am parsing an xml successfuly using NSURLRequest and when connectionDidFinishLoading, xmlParser does the job. Problem is that if I modify remote xml file and fire again the connection, received data is the old one until I will fire it again random number of times until is finally been updated! It happens on device and also on simulator but funny issue is that on simulator, when there is no connection, sometimes acts as described before, with residual contents and console debugging messages as if connection exists… If code could help please advise. Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:35:04+00:00Added an answer on June 3, 2026 at 2:35 am

    That’s because of your default cache policy in NSURLConnection. Check NSURLConnections docs or just add this in your NSURLRequest creation.

    NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]
                                cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
                                timeoutInterval:30];
    

    The NSURLRequestReloadIgnoringLocalAndRemoteCacheData might be the key for your issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am parsing xml file from url(in code below), using file_get_contents() function, and simpleXML,
I've used following code for parsing XML file in c++. http://www.codeproject.com/Articles/176236/Parsing-an-XML-file-in-a-C-C-program . Now I
this is my first time using StAX for parsing XML documents (still in the
I'm using Amazon's simpledb in my app. When parsing xml it gives an error
I'm able to successfully parse the contents of a XML file using TouchXML, but
Background: I am parsing a 330 meg xml file into a DB (netflix catalog)
I am parsing an xml file successfully in PHP, but having difficulty parsing a
Here is my code: (source: http://www.androidhive.info/2011/11/android-xml-parsing-tutorial/ ) Here is my XML file: removed On
I am using ColdFusion 8. I am parsing an XML document and need to
I am using the following code for parsing of small xml files and it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.