DataFlex
DataFlex
Convert HTML File to XML File
See more HTML-to-XML/Text Examples
Convert HTML file to XML file.Chilkat DataFlex Downloads
Use ChilkatAx-win32.pkg
Procedure Test
Boolean iSuccess
Handle hoHtmlToXml
String sTemp1
Move False To iSuccess
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Get Create (RefClass(cComChilkatHtmlToXml)) To hoHtmlToXml
If (Not(IsComObjectCreated(hoHtmlToXml))) Begin
Send CreateComObject of hoHtmlToXml
End
// Indicate the charset of the output XML we'll want.
Set ComXmlCharset Of hoHtmlToXml To "utf-8"
Get ComConvertFile Of hoHtmlToXml "test.html" "out.xml" To iSuccess
If (iSuccess <> True) Begin
Get ComLastErrorText Of hoHtmlToXml To sTemp1
Showln sTemp1
End
Else Begin
Showln "Success"
End
End_Procedure