- Using namespace System.Xml
- Code:
XmlDocument a=new XmlDocument();
a.Load(Server.MapPath("~") + "//a.html");
XmlNode n = a.SelectSingleNode("/html/body");
TextBox1.Text = n.InnerXml;
Note:
- Be sure about case sensitivity of tag example (/HTML/BODY) in place of (/html/body).