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