Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

basic xml question (c#)

Status
Not open for further replies.

lfc77

Programmer
Joined
Aug 12, 2003
Messages
218
Location
GB
I have an XML file, which I want to write the screen (in its standard XML format) in my ASP.NET C# webpage. Can anybody tell me how to do this?


Cheers,

lfc77
 
The easiest way is simply:

Code:
XmlDataDocument yourXml = new XmlDataDocument();
yourXml.Load("string_to_location");
Response.Write(yourXml.OuterXml);

Hope that helps!

Craftor
8-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top