dotnet_Profiler dotnet_Profiler - 4 months ago 16x
HTML Question

Deserialize XML with HTML Tags

I'm wondering for a solution to deserialise the values of HTML in a XML Element.
My Sample XML is given below,

<P>This <i>is </i> a sample <B>XML Tag</B><P>

I want this "

This is a sample XML Tag

" as string. Please suggest me the solution. I cannot add cdata in the XML file.


You need to use escape characters:

"   &quot;
'   &apos;
<   &lt;
>   &gt;
&   &amp;

Full reference: