Sample code for 30+ languages & platforms
Visual FoxPro

Load XML from Local FilePath

Demonstrates how to load XML from a local XML file.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL lnSuccess
LOCAL loXml

lnSuccess = 0

loXml = CreateObject('Chilkat.Xml')

* Pass either an absolute file path, or a file path relative from the current working directory of the caller.
lnSuccess = loXml.LoadXmlFile("qa_data/hamlet.xml")
IF (lnSuccess = 0) THEN
    ? loXml.LastErrorText
    RELEASE loXml
    CANCEL
ENDIF

? "Success."

RELEASE loXml