Xbase++
Xbase++
Convert HTML File to XML File
See more HTML-to-XML/Text Examples
Convert HTML file to XML file.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oHtmlToXml
nSuccess := 0
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
oHtmlToXml := CreateObject("Chilkat.HtmlToXml")
// Indicate the charset of the output XML we'll want.
oHtmlToXml:XmlCharset := "utf-8"
nSuccess := oHtmlToXml:ConvertFile("test.html", "out.xml")
IF (nSuccess != 1)
? oHtmlToXml:LastErrorText
ELSE
? "Success"
ENDIF
oHtmlToXml:destroy()