I have a basic xml file that looks like this.
<root>
<item>
<title><p>some title</p></title>
</item>
...
</root>
What I want, is to get the whole title string including the html tag of the xml using linq and displaying it in a repeater .
I can get the title with no problem, but the <p> tag is being stripped out.
If I use
title = item.Element("title").ToString(), it works somehow but I get all the xml tag as well - meaning the title is not displayed in html.
I already tried with encoding the "<" with "<" but to do this makes the xml hard to read.
What would be a possible solution besides using CDATA and encoding?
Cheers Terry