B4X
B4X
Decode HTML Entities found in XML
Demonstrates how to decode HTML entities found in XML.Chilkat B4X Downloads
Dim success As Boolean = False
' Load an XML file containing the following:
' <?xml version="1.0" encoding="UTF-8"?>
' <output>Französische</output>
Dim xml As ChilkatXml
xml.Initialize
success = xml.LoadXmlFile("qa_data/xml/hasHtmlEntity.xml")
' Get non-decoded content, then get decoded content.
' Result is Französische
Log(xml.Content)
' Result is Französische
Dim strDecoded As String = xml.DecodeEntities(xml.Content)
Log(strDecoded)