Kurt Waldheim wrote:
I want do download a XML file using the WebBrowser class. How can I
prevent that the file is converted to HTML code using a stylesheet.
A browser is mainly for rendering and not for downloading. If you want
to download consider using WebClient or WebRequest if possible.
If you are using a WebBrowser control then whether that treats a
requested resource as XML and applies its default stylesheet to render
the tree depends on the Content-Type the response is sent with.
Can you change what the server sends?
I don't know much about the WebBrowser control, the documentation says
it has a method named ShowSaveAsDialo g, perhaps that helps.
It is not really an XML question, rather a question to program the
WebBrowser control, maybe someone in a WinForm .NET groups knows more.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/