DataFlex
DataFlex
Load XML from Local FilePath
Demonstrates how to load XML from a local XML file.Chilkat DataFlex Downloads
Use ChilkatAx-win32.pkg
Procedure Test
Boolean iSuccess
Handle hoXml
String sTemp1
Move False To iSuccess
Get Create (RefClass(cComChilkatXml)) To hoXml
If (Not(IsComObjectCreated(hoXml))) Begin
Send CreateComObject of hoXml
End
// Pass either an absolute file path, or a file path relative from the current working directory of the caller.
Get ComLoadXmlFile Of hoXml "qa_data/hamlet.xml" To iSuccess
If (iSuccess = False) Begin
Get ComLastErrorText Of hoXml To sTemp1
Showln sTemp1
Procedure_Return
End
Showln "Success."
End_Procedure