473,326 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Disdplaying resulting XML Response as Raw XML on Web Page

This may be trivial. It was back when I did HTTP POST with XML Docs.

Now on ASL.Net I'm using XML proxy classes and everything I've tried tries
to act on the XML.

I have a test ASPX page that I use to test web service. When response is
returned I want to open a new window and disdplay result as XML. I don't
want tags removed. I don't have any XLST. I just want to popup with raw XML
tags and all. I don't mind invoking anoither ASPX page to display the XML.

I'm guessing the is very easy, or should be.

May 15 '07 #1
5 5028
doug wrote:
This may be trivial. It was back when I did HTTP POST with XML Docs.

Now on ASL.Net I'm using XML proxy classes and everything I've tried tries
to act on the XML.

I have a test ASPX page that I use to test web service. When response is
returned I want to open a new window and disdplay result as XML. I don't
want tags removed. I don't have any XLST. I just want to popup with raw XML
tags and all. I don't mind invoking anoither ASPX page to display the XML.

I'm guessing the is very easy, or should be.
Hi, Doug
You can serialize the object(s) let's say with System.Xml.Serialization,
and than print out its in-memory representation, or store it somewhere
in the server and provide a direct link to the xml file. This should
open it in the browser as you desire.

HTH,
Petar Atanasov
http://a-wake.net
May 15 '07 #2
Peter,

That isn't working for me. Doing just this and my tags are removed showing
just the data portion.

doug

"Petar Atanasov" wrote:
doug wrote:
This may be trivial. It was back when I did HTTP POST with XML Docs.

Now on ASL.Net I'm using XML proxy classes and everything I've tried tries
to act on the XML.

I have a test ASPX page that I use to test web service. When response is
returned I want to open a new window and disdplay result as XML. I don't
want tags removed. I don't have any XLST. I just want to popup with raw XML
tags and all. I don't mind invoking anoither ASPX page to display the XML.

I'm guessing the is very easy, or should be.

Hi, Doug
You can serialize the object(s) let's say with System.Xml.Serialization,
and than print out its in-memory representation, or store it somewhere
in the server and provide a direct link to the xml file. This should
open it in the browser as you desire.

HTH,
Petar Atanasov
http://a-wake.net
May 15 '07 #3
doug wrote:
That isn't working for me. Doing just this and my tags are removed showing
just the data portion.
Do you set
Response.ContentType = "application/xml"
before sending your XML to the browser?

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
May 15 '07 #4
I'll check this.

"Martin Honnen" wrote:
doug wrote:
That isn't working for me. Doing just this and my tags are removed showing
just the data portion.

Do you set
Response.ContentType = "application/xml"
before sending your XML to the browser?

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
May 16 '07 #5
That did it. Thanks. Assumed it was easy.

doug

"Martin Honnen" wrote:
doug wrote:
That isn't working for me. Doing just this and my tags are removed showing
just the data portion.

Do you set
Response.ContentType = "application/xml"
before sending your XML to the browser?

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
May 16 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Terence Parker | last post by:
I am trying to connect an e-commerce system to a payment gateway (located in Hong Kong). The gateway takes values in the form of a simple form submit - however, the results (i.e. authorisation...
3
by: VB Programmer | last post by:
I have a databound datagrid on an aspx form. How can I get the resulting html that is generated via code? I want to response.write the html results (of the dg) to the end of another html page. ...
5
by: VB Programmer | last post by:
I created a rtf html newsletter editor using ASP.NET. It has a preview button which previews the resulting newletter. The "preview" page basically has tables with labels in it. I fill in the...
5
by: Rob Nelder | last post by:
I’m attempting to stream a PDF to the browser so that the user will get the appearance of just opening the PDF in Explorer. The PDF is being generated by the SQL Server Reporting Services web...
11
by: PW | last post by:
One of my ASP's was working fine for a long time. Now it has started constantly refreshing itself. Everytime I run it I just get the first part of the page, then it refreshes itself, the rest of...
2
by: Jonathan Wood | last post by:
I've created some javascript and added it to my page (from a user control) using Page.ClientScript.RegisterClientScriptBlock. The javascript hides and shows certain elements in response to radio...
10
by: Cirene | last post by:
I know that sometimes referring to controls deep in a page using a Master Page can be funky. For a website using a standard header/footer/nav, do you prefer using User Controls for the common...
3
by: randy.buchholz | last post by:
I have been encountering strange behaviour on client machines where the pages truncate the display in the middle of the page. At some point the browser just goes white from one line to the bottom...
30
by: Paul W Smith | last post by:
I have written a hit counter, which I believe counts the times my page is hit by a user for each unique session by the user. The relevant part of my code is below: If...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.