Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-14-2007, 09:51 PM #1
- Join Date
- Apr 2006
- Thanked 0 Times in 0 Posts
Creating an RSS (XML) file with ASP
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?
09-15-2007, 06:18 PM #2
- 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 06:20 PM.