XML File vs XML string

Hi All,

I have a simple Windows form that implement the Web Browser component. This form is used to simple display data from a XML file using a style sheet (from a XSL file). Basically, this has been accomplished by the following simple two lines of code (thanks to Microsoft )

protectedinternal AxSHDocVw.AxWebBrowser axWebBrowser1;

axWebBrowser1.Navigate("C:\xxx\MyData.XML");
My problem now is that, instead of having the MyData.XML from a file, I got the XML from the database via a stored procedure that return me the XML formatted string.

The old way: I got the xml file and the xsl file.
The new way: I got the xml string and the xsl file.

My question is, how do I make the axWebBrowser1 does the same thing without writing the xml string to the Mydata.XML file first?

Thanks in advance.

[1010 byte] By [DavidN.] at [2008-2-10]
# 1

Oops. I examined the web-browser component and discover that it has the navigate2(object) that take the object agurment instead of the string file name. I think I can call the Navigate2() and pass the XML string to it.

Thanks.

DavidN. at 2007-9-9 > top of Msdn Tech,.NET Development,XML and the .NET Framework...

.NET Development

Site Classified