我得到了以下代码行的上面的错误代码。
XmlDocument xdoc = new XmlDocument();
xdoc.LoadXml(smsreport.CampaignXML);//catches exception on this line和
smsreport.CampaignXML="
<job-status-report>
<job-request-id>
<recipients>
<recipient>
<destination>4122985372
<status>SENT
<error-message></error-message>
<recipient>
<destination>8142799046
<status>SENT
<error-message></error-message>
<recipient>
<destination>4123893743
<status>SENT
<error-message></error-message>
<recipient>
<destination>8142443845
<status>SENT
<error-message></error-message>
<recipient>
<destination>4124014618
<status>SENT
<error-message></error-message>
<recipient>
<destination>4126546500
<status>FAIL
<error-message>DLVtst:SubmitSM invalid destination address</error-message>
<recipient>
<destination>4129151665
<status>SENT
<error-message></error-message>
<recipient>
<destination>9712229387
<status>SENT
<error-message></error-message>
<recipient>
<destination>5708815785
<status>SENT
<error-message></error-message>
<recipient>
<destination>8183356585
<status>SENT
<error-message></error-message>
<recipient>
<destination>4124775849
<status>SENT
<error-message></error-message>
<recipient>
<destination>4124775849
<status>SENT
<error-message></error-message>
<recipient>
<destination>7169831368
<status>SENT
<error-message></error-message>
<recipient>
<destination>2022858850
<status>SENT
<error-message></error-message>
</job-request-id>
</job-status-report>"我还验证了campaignxml是修复此问题的有效xml.How??
发布于 2014-01-10 18:12:41
我重新格式化了您的XML,以便更容易看到它的样子。
您缺少大多数元素的结束标记。
https://stackoverflow.com/questions/21041157
复制相似问题