July 30th, 2011, 10:12 AM
XML parsing takes too long
hi, when i try to output the values within a xml from an url in a console window, it stucks at xml.Read(); for about 20 seconds, however, i sent the test build to a friend, and it only takes 1 sec for him, what could possibly be the cause of this prolonged delay?
string partialurl = "http://statapi.transformice.com/miceinfo.xml?n=";
string mousename = Console.ReadLine();
string fullurl = partialurl + mousename;
Console.Write("URL will be: ");
XmlTextReader xml = new XmlTextReader(fullurl);
xml.Read(); // Hangs at this location!
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!