Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString
Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oMailman
LOCAL cXmlBundleStr
LOCAL oBundleObj
LOCAL oBundle
nSuccess := 0
oMailman := CreateObject("Chilkat.MailMan")
// ...
// ...
cXmlBundleStr := "..."
// ------------------------------------------------------------------------
// The LoadXmlString method is deprecated:
oBundleObj := oMailman:LoadXmlString(cXmlBundleStr)
IF (oMailman:LastMethodSuccess == 0)
? oMailman:LastErrorText
oMailman:destroy()
RETURN
ENDIF
// ...
// ...
oBundleObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using EmailBundle.LoadXmlString.
oBundle := CreateObject("Chilkat.EmailBundle")
nSuccess := oBundle:LoadXmlString(cXmlBundleStr)
IF (nSuccess == 0)
? oBundle:LastErrorText
oMailman:destroy()
oBundle:destroy()
RETURN
ENDIF
oMailman:destroy()
oBundle:destroy()