Waleed K. Abdulla wrote:
>
> > How to do comparisons if the time were expressed in a manner not
> > easily compared as strings, e.g. "1/30/2006 08:00"?
>
> Not easy. XPath doesn’t recognize a date/time type. I’d recommend
> using the standard XML format for dates: 2006-01-30T08:00. This is the
> ‘standard’ way for dates in XML, and with it you can use the
> translate() trick to remove the -, T, and : and perform date comparisons.
>
XPath 1.0 is limited to this, XPath 2.0 supports the 19 primitive types
defined by XML Schema. I believe the only XPath 2.0 implementation for
.NET is Saxon .NET. Might be worth checking out. Here is more info on
Xpath 2.0.
http://www.xml.com/pub/a/2002/03/20/xpath2.html
Dave