C Craig Buchanan Mar 1, 2004 #1 Is it possible to use regular expressions in an XMLNode.SelectSingleNode method? Thanks, Craig Buchanan
Is it possible to use regular expressions in an XMLNode.SelectSingleNode method? Thanks, Craig Buchanan
D Daniel D.C. [MSFT] Mar 2, 2004 #2 SelectSingleNode follows the XPath language rules, which has no provisions for regular expressions.
O Oleg Tkachenko [MVP] Mar 2, 2004 #3 Craig said: Is it possible to use regular expressions in an XMLNode.SelectSingleNode method? Click to expand... Yes, that's possible, but not in pure XPath. You can extend XPath with EXSLT extension functions (which include regexp matching, testing and replacing). Read "EXSLT meets XPath" article at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml11172003.asp
Craig said: Is it possible to use regular expressions in an XMLNode.SelectSingleNode method? Click to expand... Yes, that's possible, but not in pure XPath. You can extend XPath with EXSLT extension functions (which include regexp matching, testing and replacing). Read "EXSLT meets XPath" article at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml11172003.asp