I want to pass xml formatted text to inner xml text. Is it possible?
XmlNode parentNode = myTemplate.CreateNode (XmlNodeType.Element, "Parent","myns");
XmlNode childNode = myTemplate.CreateNode(XmlNodeType.Element, "head", "myns");
childNode.InnerText = "<paragraph>sample text</paragraph>";
parentNode.AppendChild(childNode);
but my O/P is coming like
<head><paragraph>sample text</paragraph></head>
desired O/P is
<head><paragraph>sample text</paragraph></head>
Any solution?