• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 858
  • Last Modified:

ASP.NET Response.Write XMLNode content

An WS call returns an XMLNode. How can the content of that XMLNode be displayed in Response.Write()?
Thanks.
0
ksfok
Asked:
ksfok
  • 3
1 Solution
 
SteveH_UKCommented:
C#:
Response.Write(xmlnode.OuterXml);
VB.NET:
Response.Write(xmlnode.OuterXml)
0
 
SteveH_UKCommented:
Of course you may want to encode it for HTML display:

System.Web.HttpUtility.HtmlEncode(xmlnode.OuterXml);
0
 
SteveH_UKCommented:
Thanks for the points :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now