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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:36:17+00:00 2026-05-15T22:36:17+00:00

im currently parsing an xml file that is hosted on another PC via hosting

  • 0

im currently parsing an xml file that is hosted on another PC via hosting a Apache http server which works fine. Now is it possible to code it in such a way that the iPhone deletes the xml file on that pc?

im currently using a NSMutableURLRequest and setting it to an NSData.

NSError * error; 
NSURLResponse * response;

NSMutableURLRequest *request =
    [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://ipaddress/UserBedData.xml"]
                            cachePolicy:NSURLRequestReloadIgnoringCacheData
                        timeoutInterval:5.0];
[request setHTTPMethod:@"GET"];         
NSData * responseData = [NSURLConnection sendSynchronousRequest:request
                                              returningResponse:&response
                                                          error:&error];
xmlParser = [[NSXMLParser alloc] initWithData:responseData];
  • 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-05-15T22:36:18+00:00Added an answer on May 15, 2026 at 10:36 pm

    How much control do you have over this other server? I assume you have full access.

    Consider simply cleaning the XML up periodically. Run a cron job and delete files every hour after you know they aren’t needed any more. Maybe create a list on the backend that logs when data has been accessed, so that it can be safely expired.

    Without further details on what you’re doing, the approach is difficult to narrow down. Why can’t you parse the XML on the iPhone e.g.? Can the XML feeds be generated dynamically, so there’s no file to clean up? Where is the XML data coming from? This isn’t necessarily a situation where posting your code is going to help. You should elaborate on how all the piece fit together (the iPhone app, the remote server, the data) and what you’re trying to accomplish.

    Is it even a collection of XML files? Or is it always the same one? If it’s just one file, why do you need to delete it? Simply overwrite the old one when it gets regenerated (and datestamp it somewhere, so the client who downloads it knows when it’s really out of date).

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

Sidebar

Related Questions

I have written a program that reads in a File object (really an XML
I need to parse a fairly large XML file (varying between about a hundred
Traditionally we have always used xml in the response which is parsed by a
I want to do xml parsing of finding the Humidity, Current Temperature and the
currently I am thinking about data encapsulation in C# and I am a little
I have created an extension method called AddGZip which looks like the following: public
I'm trying to speed up my builds some and was looking for some thoughts
In a project I am working on, I just finished writing an XSD for
Previous I issued a question on how to change Maven project vesion from command
I am trying to figure out the best way to handle a scenario where

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.