AutoIt
AutoIt
Decode HTML Entities found in XML
Demonstrates how to decode HTML entities found in XML.Chilkat AutoIt Downloads
Local $bSuccess = False
; Load an XML file containing the following:
; <?xml version="1.0" encoding="UTF-8"?>
; <output>Französische</output>
$oXml = ObjCreate("Chilkat.Xml")
$bSuccess = $oXml.LoadXmlFile("qa_data/xml/hasHtmlEntity.xml")
; Get non-decoded content, then get decoded content.
; Result is Französische
ConsoleWrite($oXml.Content & @CRLF)
; Result is Französische
Local $strDecoded = $oXml.DecodeEntities($oXml.Content)
ConsoleWrite($strDecoded & @CRLF)