Re: xml - write to browser
- From: "RedLars" <Liverpool1892@xxxxxxxxx>
- Date: 2 Apr 2007 06:12:34 -0700
On 2 Apr, 14:41, Martin Honnen <mahotr...@xxxxxxxx> wrote:
RedLars wrote:
For debugging purposes I'd like to ouput the entire xml file to my
default browser. Do I need to traverse the xml structure (info
xmlelement) myself or is there a standard api that does this for me?
<%@ Page Language="c#"%>
<%
Server obj = new Server("localhost");
System.Xml.XmlElement info = obj.GetInfo();
// write to browser
Response.ContentType = "application/xml";
info.WriteTo(new XmlTextWriter(Response.Output));
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Martin; Thanks for helping out.
.
- References:
- xml - write to browser
- From: RedLars
- Re: xml - write to browser
- From: Martin Honnen
- xml - write to browser
- Prev by Date: Re: How to implement a automatic login function
- Next by Date: Best AJAX Enablement Tool?
- Previous by thread: Re: xml - write to browser
- Next by thread: ignore case ValidationExpression in RegularExpressionValidator
- Index(es):
Relevant Pages
|