如何在C#中使用Xpath选择节点范围? [英] How could i select range of nodes using Xpath in C#

查看:98
本文介绍了如何在C#中使用Xpath选择节点范围?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个Xml:



I have this Xml:

 <dbo>
    <Id>8270</Id>
    <FormName>new</FormName>
    <City>new</City>
    <ClaimNo>899</ClaimNo>
    <FDate>20/12/2012 00:00:00</FDate>
    <Amount>544</Amount>
    <GroupId>0</GroupId>
    <UpLoadDate>20/12/2012 12:06:27</UpLoadDate>
  </dbo>
<dbo>
    <Id>8271</Id>
    <FormName>new</FormName>
    <City>new</City>
    <ClaimNo>899</ClaimNo>
    <FDate>20/12/2012 00:00:00</FDate>
    <Amount>544</Amount>
    <GroupId>0</GroupId>
    <UpLoadDate>20/12/2012 12:06:27</UpLoadDate>
  </dbo>
<dbo>
    <Id>8272</Id>
    <FormName>new</FormName>
    <City>new</City>
    <ClaimNo>899</ClaimNo>
    <FDate>20/12/2012 00:00:00</FDate>
    <Amount>544</Amount>
    <GroupId>0</GroupId>
    <UpLoadDate>20/12/2012 12:06:27</UpLoadDate>
  </dbo>





我想从dateTime 1到dateTime 2选择UpLoadDate 。

在c#中执行此操作的Xpath查询是什么?

谢谢。



I want to select the "UpLoadDate" from "dateTime 1" to "dateTime 2".
What is the Xpath query to do this in c#??
Thanks.

推荐答案

不,我们不会给你解决方案..我们不能这样为你工作..你应该自己尝试..如果你卡在某个地方,你当然可以来这里..但不要问直接代码..

-Krunal R
No, we won''t give you solution.. We can''t work out for you like this.. You should try it by yourself.. If you got stuck somewhere, you can certainly come here.. But don''t ask directly for code..
-Krunal R


这篇关于如何在C#中使用Xpath选择节点范围?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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