Sample code for 30+ languages & platforms
AutoIt

Download HTML from URL and Convert to XML

See more HTML-to-XML/Text Examples

Downloads an HTML page from a URL and converts it to XML.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

; Note: This example requires the Chilkat Bundle license.

; Any string argument automatically begins the 30-day trial.
$oGlob = ObjCreate("Chilkat.Global")
$bSuccess = $oGlob.UnlockBundle("30-day trial")
If ($bSuccess <> True) Then
    ConsoleWrite($oGlob.LastErrorText & @CRLF)
    Exit
EndIf

$oHttp = ObjCreate("Chilkat.Http")

Local $sHtml
$sHtml = $oHttp.QuickGetStr("http://www.intel.com/")
If ($oHttp.LastMethodSuccess <> True) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf

$oHtmlToXml = ObjCreate("Chilkat.HtmlToXml")

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

; Set the HTML:
$oHtmlToXml.Html = $sHtml

; Convert to XML:
Local $sXml
$sXml = $oHtmlToXml.ToXml()

; Save the XML to a file.
; Make sure your charset here matches the charset
; used for the XmlCharset property.
$bSuccess = $oHtmlToXml.WriteStringToFile($sXml,"qa_output/out.xml","utf-8")

ConsoleWrite("Finished." & @CRLF)