Unicode C++
Unicode C++
Decode HTML Entities found in XML
Demonstrates how to decode HTML entities found in XML.Chilkat Unicode C++ Downloads
#include <CkXmlW.h>
void ChilkatSample(void)
{
bool success = false;
// Load an XML file containing the following:
// <?xml version="1.0" encoding="UTF-8"?>
// <output>Französische</output>
CkXmlW xml;
success = xml.LoadXmlFile(L"qa_data/xml/hasHtmlEntity.xml");
// Get non-decoded content, then get decoded content.
// Result is Französische
wprintf(L"%s\n",xml.content());
// Result is Französische
const wchar_t *strDecoded = xml.decodeEntities(xml.content());
wprintf(L"%s\n",strDecoded);
}