Visual FoxPro
Visual FoxPro
Convert HTML File to XML File
See more HTML-to-XML/Text Examples
Convert HTML file to XML file.Chilkat Visual FoxPro Downloads
LOCAL lnSuccess
LOCAL loHtmlToXml
lnSuccess = 0
* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.
loHtmlToXml = CreateObject('Chilkat.HtmlToXml')
* Indicate the charset of the output XML we'll want.
loHtmlToXml.XmlCharset = "utf-8"
lnSuccess = loHtmlToXml.ConvertFile("test.html","out.xml")
IF (lnSuccess <> 1) THEN
? loHtmlToXml.LastErrorText
ELSE
? "Success"
ENDIF
RELEASE loHtmlToXml