I'm using the following code in a blank page:
public void Page_Load(object sender, EventArgs e)
{
...
XmlDocument xdoc = new XmlDocument();
xdoc.LoadXml(receipt.getIndividualReceipt(a, b));
}
How can I show the XML data that is in xdoc without saving the file
locally (which I'm not sure is even possible) and opening it?
Thanks in advance.
"Looch" <lucian...@yahoo.com> wrote in message
news:1192131716....@r29g2000hsg.googlegroups.com...
"Looch" <lucian...@yahoo.com> wrote in message
news:1192131716....@r29g2000hsg.googlegroups.com...
You could output xdoc.OuterXml.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
I understand how this would work:
Console.WriteLine(xdoc.OuterXml);
But what should replace the Console.WriteLine if outputting to a blank
page?
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?