Newbie: fetching XML over http
There is .NET 1.0, 1.1, and 2.0 but no 1.2 version.
The XML APIs like XmlDo***ent, XPathDo***ent, Xml(Text)Reader usually
have a Load method or a constructor taking a Url thus if you simply want
to make a HTTP GET request then pass the URL in
Besides that, to make HTTP requests in the .NET framework there is WebClient
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetWebClientClassTopic.asp>
and then there is WebRequest/HttpWebRequest and HttpWebResponse
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetHttpWebRequestClassTopic.asp>
All XML APIs like XmlDo***ent, XPathDo***ent, Xml(Text)Reader can read
from a stream so using either WebClient or HttpWebRequest if you e.g.
want to POST data and then using the response stream you get as an input
to the XML APIs should do.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
|