tags:

views:

47

answers:

3

Hi,

it might sound stupid, but I need a way to take an XML file / string, and show it to a user in a form.
I'm currently trying to use the WebBrowser control, but its Document field is read only. I tried setting DocumentText instead but it seems to be accepting HTML only. What control should I use? It can be anything in WinForms or Infragistics.
Also, if there's a .NET XML parser, I'd love to know.

Thanks.

+1  A: 

Try setting the DocumentText instead. See this post for further details.

SwDevMan81
A: 

Load the document with XmlDocument.Load(). Then use XmlDocument.OuterXml...

thehowler