Sample code for 30+ languages & platforms
Xbase++ Requires Chilkat v11.0.0+

Transition from MailMan.LoadXmlFile to EmailBundle.LoadXml

Provides instructions for replacing deprecated LoadXmlFile method calls with EmailBundle.LoadXml.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oMailman
LOCAL cFilePath
LOCAL oBundleObj
LOCAL oBundle

nSuccess := 0

oMailman := CreateObject("Chilkat.MailMan")

//  ...
//  ...

cFilePath := "c:/example/emailBundle.xml"

//  ------------------------------------------------------------------------
//  The LoadXmlFile method is deprecated:

oBundleObj := oMailman:LoadXmlFile(cFilePath)
IF (oMailman:LastMethodSuccess == 0)
    ? oMailman:LastErrorText
    oMailman:destroy()
    RETURN
ENDIF

//  ...
//  ...

oBundleObj:destroy()

//  ------------------------------------------------------------------------
//  Do the equivalent using EmailBundle.LoadXml.

oBundle := CreateObject("Chilkat.EmailBundle")
nSuccess := oBundle:LoadXml(cFilePath)
IF (nSuccess == 0)
    ? oBundle:LastErrorText
    oMailman:destroy()
    oBundle:destroy()
    RETURN
ENDIF

oMailman:destroy()
oBundle:destroy()