xml解析错误
来从联系人列表中删除联系人
<deleteContact rid="100"></deleteContact>
<uri>sip:[email protected]</uri>
</deleteContact>
我正在为 android 编写一个 ocs IM 客户端,现在我正在尝试使用向 cwa 服务器发出命令请求 ...该命令来自 http://msdn.microsoft.com/en-us/library/bb969527%28v=office.12%29 .aspx。
当我将请求发送到 ocs 服务器时,出现以下错误:
Error in XML document (5, 3): deleteContact was not expected
有人知道可能是什么问题吗?或者至少告诉我如何阅读该错误:文档 (5, 3) ...
我的原始代码:
<cwaRequests sid="5" xmlns="http://schemas.microsoft.com/2006/09/rtc/cwa">
<deleteContact rid="2">
<uri>
sip:[email protected]
</uri>
</deleteContact>
</cwaRequests>
非常感谢!
I am writing a ocs IM client for android and now I am trying to delete a contact from contact list with the
<deleteContact rid="100"></deleteContact>
<uri>sip:[email protected]</uri>
</deleteContact>
command request to the cwa server... the command is from http://msdn.microsoft.com/en-us/library/bb969527%28v=office.12%29.aspx.
When I send the request to the ocs server I get the following error:
Error in XML document (5, 3): deleteContact was not expected
Does somebody know what could be the problem? Or at least tell me please how can I read that error: document (5, 3) ...
My original code:
<cwaRequests sid="5" xmlns="http://schemas.microsoft.com/2006/09/rtc/cwa">
<deleteContact rid="2">
<uri>
sip:[email protected]
</uri>
</deleteContact>
</cwaRequests>
Thank you very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要删除第一行中的结束deleteContact标记:
应该是
You need to get rid of the closing deleteContact tag in the first line:
should be