【发布时间】:2011-06-24 19:40:22
【问题描述】:
我有一个使用 xml 文档进行通信的 C# 客户端服务器应用程序。
服务器一个接一个地向客户端发送更多的xml文档。在客户端中,我从套接字读取作为缓冲区。问题是客户端碰巧一次读取了更多的xml文档。
例如,它碰巧像这样读取整个字符串:
<result>failed</result><other>more information</other>
如何将字符串拆分成我需要的两个xml文档:
<result>failed</result>
和
<other>more information</other>
?
【问题讨论】:
标签: c# xml parsing split client-server