Sample code for 30+ languages & platforms
C#

Decode HTML Entities found in XML

Demonstrates how to decode HTML entities found in XML.

Chilkat C# Downloads

C#
bool success = false;

//  Load an XML file containing the following:

//  <?xml version="1.0" encoding="UTF-8"?>
//  <output>Franz&#xf6;sische</output> 

Chilkat.Xml xml = new Chilkat.Xml();
success = xml.LoadXmlFile("qa_data/xml/hasHtmlEntity.xml");

//  Get non-decoded content, then get decoded content.

//  Result is Franz&#xf6;sische
Debug.WriteLine(xml.Content);

//  Result is Französische
string strDecoded = xml.DecodeEntities(xml.Content);
Debug.WriteLine(strDecoded);