Hi,
How To Use XML in ASP.NET?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 12, 2012, 3:51 AM EDT
.NET Framework has extensive support for working with XML Language. In the .NET framework, the support for XML documents includes:
XML Namespace
The System.Xml namespace provides a Large set of classes for processing XML data.There Are more classes such as
XmlTextReader reader = new XmlTextReader("XML1.xml");
It is important to note that the .xml file you pass as an argument to the constructor of the XmlTextReader class exists in the \WINNT\System32 folder.
XmlTextWriter writer = new XmlTextWriter(Response.Output);
Here Response.Output represents an outgoing HTTP response stream to which you want to send the XML data.
XmlDocument doc = new XmlDocument();
DataSet ds=new DataSet();
XmlDataDocument doc=new XmlDocument(ds);
Please refer the below links
http://r4r.co.in/c1/01/tutorial/csharp/how_to_use_xml_in_asp.shtml
http://www.beansoftware.com/ASP.NET-Tutorials/Using-XML.aspx
http://www.w3schools.com/xml/xml_usedfor.asp
Thanks