Sample code for 30+ languages & platforms
Lianja

Convert HTML File to XML File

See more HTML-to-XML/Text Examples

Convert HTML file to XML file.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

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

loHtmlToXml = createobject("CkHtmlToXml")

// Indicate the charset of the output XML we'll want.
loHtmlToXml.XmlCharset = "utf-8"

llSuccess = loHtmlToXml.ConvertFile("test.html","out.xml")
if (llSuccess <> .T.) then
    ? loHtmlToXml.LastErrorText
else
    ? "Success"
endif



release loHtmlToXml