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 8902297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:34:41+00:00 2026-06-15T01:34:41+00:00

Basically what I need to do here is to download a XML file from

  • 0

Basically what I need to do here is to download a XML file from a web server by registering my device (iPAD) which I’ve already done.

So, I thought of doing it like this :

  1. I request the server to get me the file , ‘….getfile.php?key’
  2. If the file is ready for export we get a acknowledgement saying ‘OK’
  3. Sending a request ‘..downloadfile.php’
  4. get a response which includes file size and other info.
  5. send a request and download file- ‘DownloadFile.php’.
  6. send a response download complete and fetch complete.

How do I do this?

  • 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-15T01:34:42+00:00Added an answer on June 15, 2026 at 1:34 am

    When interacting with web servers, you should research NSURLConnection which is discussed in the URL Loading System Programming Guide. If you want to simplify your coding effort, you can use a framework such as RestKit, AFNetworking, or something like that.

    In my mind, you seem to describe two types of interactions with the server. First, you have a request for XML response, and the parsing of that response. That is relatively easy. You just create a NSXMLParser using initWithContentsOfURL. The most prevalent demonstrations of iOS apps parsing XML would be RSS readers, and if you google “iOS RSS tutorial”, you’ll get lots of wonderful hits. Also see my sample News Parser as an example. You can also google “NSXMLParser tutorial”, though the hits seem less compelling.

    Second, you have a request to download a file. If the files are very small (e.g. measured in kb, not mb or gb), this is very easy. You just use dataWithContentsOfURL to load it into a NSData, and then you do a writeToFile to save it to a file. Just those two lines of code.

    If the files are larger, though, it gets more complicated, because you probably don’t want to hold the files in memory, and you probably want some notification of the download progress. I’m not sure if the above third party libraries do this or not. I have an NSURLConnection download example or you can just google “NSURLConnection download tutorial”.

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

Sidebar

Related Questions

I've got the following problem: I need to download a JSON file from an
Basically, I need to get JSON data from Git's web API. Great! Did that.
Basically I need to reset Identity Increment for all tables to its original. Here
here is the code: http://jsfiddle.net/hQnXm/7/ So basically i need when hover, it should animate
here is some code I've been working on, basically I need to set up
Here is my predicament. Basically, I need a column in a table to hold
Basically what's happening is that I need to download a whole bunch of files
So I basically need to get key press up/down event from eclipse editor view.
I need some help with a SQL query for SQL Server 2005. Here is
Basically I need to serve files from a location that requires windows authentication. Instead

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.