Sample code for 30+ languages & platforms
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

Visual Basic 6.0
Dim success As Long
success = 0

' Load an XML file containing the following:

' <?xml version="1.0" encoding="UTF-8"?>
' <output>Franz&#xf6;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&#xf6;sische
Debug.Print xml.Content

' Result is Französische
Dim strDecoded As String
strDecoded = xml.DecodeEntities(xml.Content)
Debug.Print strDecoded