Thomas Morton wrote:
Ah right ok :) I see - so your handling the headers & data directly.
I am, but only as a workaround. Ideally, I'd be able to use C#.NET's built-in functionality - have a WebClient download the page, then pass that into an XmlDocument. Instead, I have to manually check the headers to make sure it's not redirecting, and if it is, see where it's redirecting to, check to see if the URL is appending ?xml=1 as it should (in case they fix this in the future), correct the URL, then pass *that* to the WebClient object. This is both a lot of extra (unnecessary) code, and a big performance hit if it ever has to process a large number of IDs at one time.

Ronny Schedel wrote:
It's a better idea to split this into different tasks, use one reliable class to retrieve Internet content and use your XmlDocument class to parse a XML document like it was supposed to do.
I was doing this all along, I just forgot the XmlDocument isn't loading stuff directly because I'm using a library I wrote a year ago (you pass it a URL, it returns an XmlDocument object containing the XML data hosted at that URL).
You should move this topic to the hlcoders mailing list.
I wasn't aware there even was a coding-specific list. Besides, this isn't really related to coding or the engine, it's just a request that Valve make the community site act a bit more consistently and logically. I didn't intend it to turn into a huge programming thread :)

-Dave
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds

Reply via email to