I should probably clarify this a little, I'd like to display the data
in raw form similarly to opening an XML file that doesn't have any
kind of style sheet. Thanks.
rote - 12 Oct 2007 02:37 GMT
You can apply an xslt withoug saving the file
Or d you mean woth want to stream it out to the screen
Elaborate more
>I should probably clarify this a little, I'd like to display the data
> in raw form similarly to opening an XML file that doesn't have any
> kind of style sheet. Thanks.
rote - 12 Oct 2007 02:37 GMT
You can apply an xslt withoug saving the file
Or d you mean woth want to stream it out to the screen
Elaborate more
>I should probably clarify this a little, I'd like to display the data
> in raw form similarly to opening an XML file that doesn't have any
> kind of style sheet. Thanks.
John Saunders [MVP] - 12 Oct 2007 02:44 GMT
>I should probably clarify this a little, I'd like to display the data
> in raw form similarly to opening an XML file that doesn't have any
> kind of style sheet. Thanks.
You could output xdoc.OuterXml.

Signature
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Looch - 12 Oct 2007 15:56 GMT
I'd like to stream it out to the screen.
I understand how this would work:
Console.WriteLine(xdoc.OuterXml);
But what should replace the Console.WriteLine if outputting to a blank
page?
Looch - 12 Oct 2007 16:37 GMT
Ok, so I figured out that I needed Response.Write. Sheesh.
That seems to render the XML string returned from SQL server without
the element tags and all ran together. I loaded an XML doc with the
string (xdoc.Load(SqlResult). Response.Write has a constructor for an
object parameter but I get an error if I use xdoc as the parameter.
I'd like to render xdoc on the screen formatted with the element tags
and indenting. Why wouldn't I be able to use the xdoc object in
Response.Write?
Looch - 12 Oct 2007 16:39 GMT
Sorry that should have been xdoc.LoadXml(SqlRequest).