By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

Display raw XML in an ASP.NET page

P: 6
I've posted this question before and I don't think I received any responses. I have also searched this and other forums and my question is a bit different than the others.

I'm using ASP.NET 2005 runing on Windows XP. I would like to display raw xml in a browser from memory and not have to create a file on the file system. My need is to have the functionality that the browsers supply when displaying raw xml and, of course, I need the markup tags to remain unchanged.

Any help would be greatly appreciated!
Apr 18 '07 #1
Share this Question
Share on Google+
1 Reply

P: 12
If you have the information in a ByteArray you can use Response.Write to send it to the browser.

The Variable xmlByte is a ByteArray that contains the raw XML from memory.

Dim ue As New UTF8Encoding
Dim XMLText As String = ue.GetChars(xmlByte, 0, xmlByte.Length)

Let me know if this helps
Apr 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.