XmlTextAttribute:[XmlType(Namespace="http://www.mingchentest.com/", TypeName="Mixed")]
public class MixedTest {
public string Bold1;

[XmlText]
public string InnerText;

public string Bold2;

public override string ToString() {
return Bold1 + InnerText + Bold2;
}

public static void Main() {
MixedTest mt = new MixedTest();
mt.Bold1 = "Header:";
mt.Bold2 = "Foot:";
mt.InnerText = "    Something here    ";
Console.WriteLine(mt);

XmlSerializer xs = new XmlSerializer(typeof(MixedTest));
using(FileStream fs = new FileStream("mixed.xml", FileMode.Create, FileAccess.Write)) {
xs.Serialize(fs, mt);
}

using(FileStream fs = new FileStream("mixed.xml", FileMode.Open, FileAccess.Read)) {
MixedTest mt1 = xs.Deserialize(fs) as MixedTest;
if (mt1 != null) {
Console.WriteLine(mt1);
}
}
}

}