Hi Henrik,
Welcome to msdn newsgroup.
As for the new managed WEbBrowser control in .NET framework 2.0, it is
still used to navigating file based documents, so there must exists an
phyisical file on the disk or over network url to let it navigate.... We
can not directly assign an in-memory document or stream ot it... So for
your scenario, I think you can consider creating a temp file to store the
in-memory XML stream and then let the webbrowser control navigate to that
temp file to display them, this is the most commonly used approach so far.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Henrik Skak Pedersen" <
[email protected]>
| Subject: How do I display XML in the new .NET 2.0 WebBrowser control
| Date: Tue, 13 Dec 2005 21:05:01 +0100
| Lines: 13
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| NNTP-Posting-Host: 80.63.142.94
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.windowsforms:91948
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| Hi,
|
| I would like to show XML in the new builtin WebBrowser control. I have
the
| xml in a string.
|
| I am trying to set the DocumentText property to my xml text. But the
control
| only shows the values and not the document.
|
| How can I solve this?
|
| Thanks Henrik.
|
|
|