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

Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString

Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

loMailman = createobject("CkMailMan")

//  ...
//  ...

lcXmlBundleStr = "..."

//  ------------------------------------------------------------------------
//  The LoadXmlString method is deprecated:

loBundleObj = loMailman.LoadXmlString(lcXmlBundleStr)
if (loMailman.LastMethodSuccess = .F.) then
    ? loMailman.LastErrorText
    release loMailman
    return
endif

//  ...
//  ...

release loBundleObj

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

loBundle = createobject("CkEmailBundle")
llSuccess = loBundle.LoadXmlString(lcXmlBundleStr)
if (llSuccess = .F.) then
    ? loBundle.LastErrorText
    release loMailman
    release loBundle
    return
endif



release loMailman
release loBundle