I have several HTML entities in an XML returned by a web service as XmlDocument
type. I need to replace them with their equivalent Unicode characters, before applying XSLT transformation.
XML Snippet
<ics>
<record>
<metadata>
<meta name="Abstract" content="In the series of compounds observed after effect of &#947;-quanta"/>
</metadata>
</record>
</ics>
I'm using C# with .Net 4.0. I tried using HttpUtility.HtmlDecode
on the OuterXml
property of the above XmlDocument, but it doesn't convert the HTML entities to Unicode.
How can this be achieved?
EDIT:
I see that applying HtmlDecode once gets &#947;
to γ
. If I apply it once more, I get the required Unicode.
Any better ways to do it?