如何使用DocumentText属性在WebBrowser控件中查看XML? [英] How to view XML in WebBrowser control using the DocumentText property?

查看:184
本文介绍了如何使用DocumentText属性在WebBrowser控件中查看XML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



(这是在.NET 2.0上)

 我设法在webbrowser控件中显示XML的唯一方法是写
将xml内容添加到文件中,然后使用"导航(...)"打开
文件。这对我来说有点尴尬,因为我在字符串变量中有XML,最直接的方法是将它简单地分配给"DocumentText"属性。但是没有工作......(没有显示任何内容,虽然使用上下文菜单来查看页面源代码显示我的xml内容已经存在)。

任何提示关于怎么做?

谢谢
鲁本斯

Hi,

(This is on .NET 2.0)

 The only way I managed to show XML in the webbrowser control was to
write the xml contents to a file and then use "Navigate(...)" to open the
file. This is a bit awkward for me because I have the XML in a string
variable, and the most straightforward way to do it would be to
simply assign it to the "DocumentText" property. But that did not
work... (nothing is displayed, although using the context menu to
view the page source shows that my xml content is there).

Any tips on how to do this?

Thanks
Rubens

推荐答案

我想做的确切同样的事情谁知道怎么做?

I want to do the exact same thing anyone know how?

干杯


这篇关于如何使用DocumentText属性在WebBrowser控件中查看XML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆