there is also a default proxy you can specify in web.config or app.config
(or what have you), and I believe the XmlDocument.Load() method will utilize
this proxy if it is set. Try it.
<configuration>
<system.net>
<defaultProxy>
<proxy proxyaddress="http://localhost:3128" bypassonlocal="false" />
</defaultProxy>
</system.net>
</configuration>
-Dino
"Dennis Myrén" <de****@oslokb.no> wrote in message
news:iU****************@news4.e.nsc.no...
Then i think you have to use a HttpWebRequest to load the stream
before loading the XML.
This supports using a Proxy through the Proxy property.
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:uu**************@TK2MSFTNGP14.phx.gbl... and what if I'm behind a web proxy as I am...
The Load method does not allow for proxy credentials, does it?
I tried using the WebRequest and WebResponse with no luck...
Thanks,
Sebastián
"Dennis Myrén" <de****@oslokb.no> wrote in message
news:15****************@news4.e.nsc.no... The Load method of System.Xml.XmlDocument takes an URL.
You can also use XmlTextReader.
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
> Hi all!
> I have a quick question. How can I do to load an xml document from the
> web.
> Should I use the XMLDocument or some http class.
>
> TIA,
> Sebastián
>
>