Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Thanked 0 Times in 0 Posts

    Creating an RSS (XML) file with ASP

    Hi all,

    I have a database of 1000 properties. I would like to create an ASP or possibly a VBS file which will execute daily at a certain time, delete the old XML file, create a new XML file and write the RSS information it gets from the database with a loop. How can I create file and write information? Any ideas or examples?


  • #2
    Regular Coder
    Join Date
    May 2007
    Thanked 18 Times in 18 Posts
    You could "cheat" in ASP. Rather than execute your XML file change at a predetermined time you could have your page decide whether to load a new file or to output the old file whenever the page is requested. You would need to "lock" the file swap over in the Application object to ensure no more than one request attempts to write a new file while another request has already started, but not finished, this.

    If creating the new XML file takes too long for this approach, you could implement the XML swap in VBS and execute it in a Scheduled Task.
    Last edited by SouthwaterDave; 09-15-2007 at 07:20 PM.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts