Groups | Blog | Home
all groups > dotnet xml > june 2004 >

dotnet xml : Displaying XML Stream on ASP.NET Page


ab7819 NO[at]SPAM yahoo.com
6/7/2004 8:27:57 AM
I am writing an application which will get stream of XML Data from a
CRM application. I am able to make HTTP request and retrieve the xml
stream in XML Text Reader. I want to display this data on an ASP.NET
page.

I have done some research and found that there is XML Web Server
control in ASP.NET. However, all the examples I have seen utilize a
XML document and not an XML Stream or XMLTextReader object. Can XML
Web Server control also read from XML Text Reader. Also, what other
options can I use to display stream of XML Data on ASP.NET Page.

Oleg Tkachenko [MVP]
6/8/2004 11:43:33 AM
[quoted text, click to view]

You can easily load Stream or XmlReader into instance of XmlDocument and
then assign it to the Document property of asp:xml control.

[quoted text, click to view]

The control takes XmlDocument as source, but you can load XmlDocument
from Stream, TextReader or XmlReader.

[quoted text, click to view]

That depends on the structure of your XML. If it fits into relational
table model, you may want to use DataGrid.
--
Oleg Tkachenko [XML MVP]
AddThis Social Bookmark Button