XmlDocument filter nodes by datetime string
- by Eatdoku
Trying to apply filter / attribute comparison in the Xmldocument. Obviously , the following code snippet wouldn't work because the expression can't be converted using number() function. (according to the answer of my other question).
I'm wondering if there is a way to do the DateTime string comparison in XmlDoc.
XmlNodeList test = x2PathDoc.SelectNodes("//Config
/Entity
[@TargetDateTime>
'2010-12-19T03:25:00-08:00']");