Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: algorithm to get xml update [Thread Next] Re: algorithm to get xml updateTo: NULL Date: 6/13/2008 2:51:00 AM Oh, it is. It is ASP.NET, unuseful for C# application program. "Sam Hobbs" <samuel@s...> wrote in message news:eu5f0UHzIHA.3884@T...... > There is a lot of discussion in that discussion but I think it won't help > you. I did not read all of it but all the sample code in that discussion > seems to be using ASP from the system that the file is in. > > > "Elliot" <elliot_barclay@h...> wrote in message > news:BE0EC094-14B4-4609-917A-096725974745@m...... >>I will access the xml file on the Internet. >> I found one but have not tried yet. How do you feel the idea from otaku? >> http://www.dynamicdrive.com/forums/archive/index.php/t-9510.html >> >> >> "Sam Hobbs" <samuel@s...> wrote in >> message news:OFhL6aBzIHA.3884@T...... >>> I assume you must do this over the internet; that you do not have local >>> access to the file, but it will help to know that for sure. >>> >>> If you can access the file locally, then Windows has a few functions >>> that will help. >>> >>> If you cannot access the file locally and must query over the internet, >>> then it is possible to query the last modified date and time of a file. >>> If you do that, then you don't need to read all the data just to >>> determine if it has changed. I forget how to do it; it is something I >>> wanted to do a couple of weeks ago but I can't find any of the samples I >>> have of doing it. I thought the data was part of the HTTP headers but I >>> don't find it there. Getting the last update time of a file over the >>> internet is a very common thing to do and I am sure we could find the >>> answer easily if that will help you. I just did not pursue it further >>> when I was looking a couple of weeks ago but I know I have samples >>> somewhere in my system. >>> >>> >>> "Elliot" <elliot_barclay@h...> wrote in message >>> news:223B8966-8D9E-46FE-89BD-C408E1741988@m...... >>>>I propose to write a C# program to get the content of a xml file. >>>> However, that file may be modified after 10 seconds, 10 minutes or 10 >>>> hours. >>>> I think the algorithm of getting the content every 10 seconds to check >>>> whether it was chaged is too stupid, assuming there are 50,000 users >>>> running the program(cause a heavy workload for the web server, worse >>>> still it is unable to handle). >>>> Certainly, less than 10-second delay is acceptable if real-time is >>>> impossible. >>>> Please advise me a better algorithm. >>>> Any idea would be appreciated. >>>> >>> >>> >>> >> > > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
