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

  • Home
  • SEARCH
  • 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

Currently I am downloading and parsing my data from an XML file that is
I'm currently parsing an XML file that resides in my bundle using NSXMLParser with
I currently have a csv file that I'm parsing with an example from here:
Currently I'm working on an application that has to parse a large XML file
I have an XML file that needs parsing in PHP. I am currenlty using
Im parsing an xml file. My XML handler, my object that holds an Arraylist
iam developing one application.In that iam using the xml parsing.That xml file contain the
I'am currently trying to create and application (In c#) that parse a XML file
I am currently having an issue with parsing my xml file, for some reason
Hi I am currently having a problem with parsing an Xml string without any

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.