vb.net - xmlserializer反序列化省略包含标记

时间:2017-02-27 20:47:46

标签: vb.net tags xmlserializer

我的xml看起来像

<AddResponse xmlns="http://www.test.com/webservices">
   <ServerName>51</ServerName>
   <Response Type="ERROR">
      <ErrorDesc Type="VALIDATE" Number="215">We are sorry, that number is already in use.  If it is your mobile number, we need to verify it with you.  Please complete the one time verification by submitting your request at <a href="[ContactUs]" target="_blank" class="contact">Contact Us</a> using the keyword MYMOBILE</ErrorDesc>
   </Response>
   <ExternalInfo>
      <![CDATA[?]]>
   </ExternalInfo>
</AddResponse>

但是当反序列化时,它只返回&#34;使用关键字MYMOBILE&#34;作为ErrorDesc而不是整体 很抱歉,这个号码已经在使用中。如果是您的手机号码,我们需要与您核实。请使用关键字MYMOBILE

在联系我们提交您的请求,以完成一次性验证

请您告诉我为什么省略第一部分以及如何保留它? 注意:这适用于其中没有html标记的其他xml数据。

0 个答案:

没有答案