using System;
using System.Xml;
public class Test {
public static void Main() {
XmlDocument doc = new XmlDocument();
doc.LoadXml(""+
"some textmore text" +
"");
XmlNode elem = doc.DocumentElement.FirstChild;
Console.WriteLine("Display the InnerText of the element...");
Console.WriteLine( elem.InnerText );
Console.WriteLine("Display the InnerXml of the element...");
Console.WriteLine(elem.InnerXml);
elem.InnerText = "Text containing will have char(<) and char(>) escaped.";
Console.WriteLine( elem.OuterXml );
elem.InnerXml = "Text containing .";
Console.WriteLine( elem.OuterXml );
}
}