Lianja
Lianja
Decode HTML Entities found in XML
Demonstrates how to decode HTML entities found in XML.Chilkat Lianja Downloads
llSuccess = .F.
// Load an XML file containing the following:
// <?xml version="1.0" encoding="UTF-8"?>
// <output>Französische</output>
loXml = createobject("CkXml")
llSuccess = loXml.LoadXmlFile("qa_data/xml/hasHtmlEntity.xml")
// Get non-decoded content, then get decoded content.
// Result is Französische
? loXml.Content
// Result is Französische
lcStrDecoded = loXml.DecodeEntities(loXml.Content)
? lcStrDecoded
release loXml