Hi All,
Is there a VS2005 control that can use an XML file as its source and
show the resulting XML file contents? Similar to opening the XML file
in a new browser window, but the file data is actually shown within
the control that is on an aspx page.
Thanks for any suggestions.
Peter Bromberg [C# MVP] - 14 Feb 2008 17:30 GMT
Have you looked at the Xml Control? It's right on the Toolbox. Otherwise, you
could just use a DIV and show the xml as its InnerHtml (div runat=server).
Or, a multiline TextBox.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
> Hi All,
>
[quoted text clipped - 4 lines]
>
> Thanks for any suggestions.
Martin Honnen - 15 Feb 2008 16:30 GMT
> Is there a VS2005 control that can use an XML file as its source and
> show the resulting XML file contents? Similar to opening the XML file
> in a new browser window, but the file data is actually shown within
> the control that is on an aspx page.
With the Xml control you would need a fitting XSLT stylesheet.
Or you switch to Oleg Tkachenko's eXml control
<URL:http://www.xmllab.net/Products/eXml/tabid/174/Default.aspx>, it has
a property ShowFriendlyXml for nice XML output.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/