(AutoIt) Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString
Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString. Note: This example requires Chilkat v11.0.0 or greater.
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
Local $sXmlBundleStr = "..."
; ------------------------------------------------------------------------
; The LoadXmlString method is deprecated:
Local $oBundleObj = $oMailman.LoadXmlString($sXmlBundleStr)
If ($oMailman.LastMethodSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using EmailBundle.LoadXmlString.
$oBundle = ObjCreate("Chilkat.EmailBundle")
Local $bSuccess = $oBundle.LoadXmlString($sXmlBundleStr)
If ($bSuccess = False) Then
ConsoleWrite($oBundle.LastErrorText & @CRLF)
Exit
EndIf
|