Re: xml - write to browser



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.

.



Relevant Pages

  • Re: xml - write to browser
    ... default browser. ... Do I need to traverse the xml structure (info ... xmlelement) myself or is there a standard api that does this for me? ...
    (microsoft.public.dotnet.framework.aspnet)
  • xml - write to browser
    ... 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? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: xml - write to browser
    ... 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? ...
    (microsoft.public.dotnet.framework.aspnet)
  • what is the simpler way to generate a rowset...row xml structure with a normal, static query?
    ... Platform: Oracle 10.2.0.3 SE/Linux ... I know that using DBMS_XMLGEN I can get query results in a ROWSET..ROW ... XML structure but I have to feed it with a dynamic SQL string or a ref ...
    (comp.databases.oracle.server)