Sample code for 30+ languages & platforms
Lianja

Load XML from Local FilePath

Demonstrates how to load XML from a local XML file.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

loXml = createobject("CkXml")

// Pass either an absolute file path, or a file path relative from the current working directory of the caller.
llSuccess = loXml.LoadXmlFile("qa_data/hamlet.xml")
if (llSuccess = .F.) then
    ? loXml.LastErrorText
    release loXml
    return
endif

? "Success."


release loXml