I have an XML file having elements like this
<component name="component1">
<title><![CDATA[Title <span>(Subtitle)</span>]]></title>
</component>
I want to render the title in an HTML page. I can read the title element and when I am rendering it in the HTML page(in browser) I am getting as Title<span>(Subtitle)</span>
in the page. In the HTML source it is as Title<span>(Subtitle)</span>
How can I overcome this.
I am using C# for reading the XML data
XmlDocument document = new XmlDocument();
document.Load("pathofdocument");
XmlNodeList nodes = document.DocumentElement.SelectNodes("/list/components/componet");
foreach (XmlNode node in nodes)
{
string title = node.SelectSingleNode("title").InnerText;
}