(Xojo Plugin) 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.
Dim mailman As New Chilkat.MailMan
// ...
// ...
Dim xmlBundleStr As String
xmlBundleStr = "..."
// ------------------------------------------------------------------------
// The LoadXmlString method is deprecated:
Dim bundleObj As Chilkat.EmailBundle
bundleObj = mailman.LoadXmlString(xmlBundleStr)
If (mailman.LastMethodSuccess = False) Then
System.DebugLog(mailman.LastErrorText)
Return
End If
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using EmailBundle.LoadXmlString.
Dim bundle As New Chilkat.EmailBundle
Dim success As Boolean
success = bundle.LoadXmlString(xmlBundleStr)
If (success = False) Then
System.DebugLog(bundle.LastErrorText)
Return
End If
|