using System;
using System.Xml;
public class Test {
public static void Main() {
XmlDocument doc = new XmlDocument();
doc.LoadXml(""+
"some text more text " +
" ");
XmlElement elem = (XmlElement)doc.DocumentElement.FirstChild;
Console.WriteLine( elem.InnerText );
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 );
}
}