VB.NET
VB.NET
Convert HTML File to XML File
See more HTML-to-XML/Text Examples
Convert HTML file to XML file.Chilkat VB.NET Downloads
Dim success As Boolean = False
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.
Dim htmlToXml As New Chilkat.HtmlToXml
' Indicate the charset of the output XML we'll want.
htmlToXml.XmlCharset = "utf-8"
success = htmlToXml.ConvertFile("test.html","out.xml")
If (success <> True) Then
Debug.WriteLine(htmlToXml.LastErrorText)
Else
Debug.WriteLine("Success")
End If