-
May 6th, 2010, 01:38 PM
#1
Apth query - range check
Hi all,
I store some data in XML, along with the date it was created. The Datetime.Ticks property has the no; of ticks since the year 1100. I want to allow the users to select a date range and display data for the selected dates to be filtered. I use Ticks to select nodex based on that, it works.
so, //Tasks/task[@Ticks>16588372930411]" works , note that ticks is a long type.
But using ticks to compares does NOT work Like:
//Tasks/task[@Ticks>16588372930411 and @Ticks<83744578232].
Is my xpath query wrong? how do we apply a between x and Y operator here. Iam doing this in C#. Any help would be greatly appreciated. Thank you.
CT.
[If you find my answers useful, please leave your comments and rating for it.]
Happy Coding!
My Dev.: MS VS 2005 Version 8.0.50727.42 .NET 2.0.50727
Mark your answers Tools>>RESOLVED once its answered.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|