Can we pass xml formatted text to inner xml?

ArTanGeL

New Member
I want to pass xml formatted text to inner xml text. Is it possible?\[code\] 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);\[/code\]but my O/P is coming like \[code\]<head><paragraph>sample text</paragraph></head>\[/code\]desired O/P is\[code\]<head><paragraph>sample text</paragraph></head>\[/code\]Any solution?
 
Back
Top