Sample code for 30+ languages & platforms
AutoIt

Convert HTML File to XML File

See more HTML-to-XML/Text Examples

Convert HTML file to XML file.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.

$oHtmlToXml = ObjCreate("Chilkat.HtmlToXml")

; Indicate the charset of the output XML we'll want.
$oHtmlToXml.XmlCharset = "utf-8"

$bSuccess = $oHtmlToXml.ConvertFile("test.html","out.xml")
If ($bSuccess <> True) Then
    ConsoleWrite($oHtmlToXml.LastErrorText & @CRLF)
Else
    ConsoleWrite("Success" & @CRLF)
EndIf