Sample code for 30+ languages & platforms
Xbase++

Load XML from Local FilePath

Demonstrates how to load XML from a local XML file.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oXml

nSuccess := 0

oXml := CreateObject("Chilkat.Xml")

//  Pass either an absolute file path, or a file path relative from the current working directory of the caller.
nSuccess := oXml:LoadXmlFile("qa_data/hamlet.xml")
IF (nSuccess == 0)
    ? oXml:LastErrorText
    oXml:destroy()
    RETURN
ENDIF

? "Success."

oXml:destroy()