在asp.net中使用selectnode进行计数 [英] use selectnode for count in asp.net

查看:89
本文介绍了在asp.net中使用selectnode进行计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个xml字符串

Hi
I have a xml string as

<ServiceLft><Service xsi:type="SHotel" SPUIS="11414"><Reference><DDDD>15874-H1</DDDD></Reference>
<ARVL>
<HLRM>
<CnPolicy>
Policy Is From Here
</CnPolicy>
</HLRM>
</ARVL>









我想要检查CnPolicy是否退出..如何做到这一点,

或如何使用selectnode来获取特定xml的数量..

ie。从上面来看,如何计算CnPolicy。





I want to check if CnPolicy exits.. How to do this,
or how to use selectnode to get count of particular xml ..
ie. from above, how to get count of CnPolicy.

推荐答案

在codeProject中有很多关于使用XML的文章和教程。请参考:



http://codeproject.tv/video/6952980/c-2010-working-with-xml-part-1



使用-XML-in- C-in-the-simple-way



C#Application with XML File
There are quite a few articles and tutorials about working with XML in codeProject. Please refer to:

http://codeproject.tv/video/6952980/c-2010-working-with-xml-part-1

Using-XML-in-C-in-the-simplest-way

C# Application with XML File


这篇关于在asp.net中使用selectnode进行计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆