Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
I have problem with XDocument.Load

im trying to develop console Application to load xml data form internet and read nodes to know which files to download it

but wehn i used the application and updated the xml in the internet the application load the old version didnt got the new updates

what i have to do and how i can fix this problem


this is the code
  class Program
    {
        static void Main(string[] args)
        {
                    
            try
            {
                XDocument doc = XDocument.Load("http://awalsolutions.net/MeduUpdates/Medulist.xml", LoadOptions.);
                CopyFiles(doc);
                
            }
            catch
            {
                Console.WriteLine("No Update Exists, Press any key to exit");
                Console.ReadLine();
            }

           
        }
   
   }
thanks
Posted
Updated 7-Sep-11 20:35pm
v4

So what's your actual problem? Is your code wrong, or is the server not using the latest version of the file? Or both?

Delete your cache in the browser, and then try again.
 
Share this answer
 
v2
Comments
NourBerro 7-Sep-11 8:51am    
The Application read the old version of xml file

if i update the xml datafile the application read it as i didnt update it
i dont know why
if i delete the xml file also the app read it i dont know where from
NourBerro 7-Sep-11 8:58am    
its windows application
how can i make the application not store cache ??
HI,

you can do this using little bit different way user HttpRequest[^] and Httpresponse[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900