Re: xml - write to browser
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Mon, 02 Apr 2007 14:41:08 +0200
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/
.
- Follow-Ups:
- Re: xml - write to browser
- From: RedLars
- Re: xml - write to browser
- References:
- xml - write to browser
- From: RedLars
- xml - write to browser
- Prev by Date: OpenLDAP
- Next by Date: minRequiredNonalphanumericCharacters problem
- Previous by thread: Re: xml - write to browser
- Next by thread: Re: xml - write to browser
- Index(es):
Relevant Pages
|