sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Craig Buchanan's Avatar

SelectSingleNode and Regular Expressions?


Question posted by: Craig Buchanan (Guest) on November 12th, 2005 03:03 AM
Is it possible to use regular expressions in an XMLNode.SelectSingleNode
method?

Thanks,

Craig Buchanan


2 Answers Posted
Daniel D.C. [MSFT]'s Avatar
Daniel D.C. [MSFT] November 12th, 2005 03:03 AM
Guest - n/a Posts
#2: Re: SelectSingleNode and Regular Expressions?

SelectSingleNode follows the XPath language rules, which has no provisions
for regular expressions.

--
Daniel D.C. [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights


"Craig Buchanan" <someone@somewhere.com> wrote in message
news:#nnfta9$DHA.916@tk2msftngp13.phx.gbl...[color=blue]
> Is it possible to use regular expressions in an XMLNode.SelectSingleNode
> method?
>
> Thanks,
>
> Craig Buchanan
>
>[/color]


Oleg Tkachenko [MVP]'s Avatar
Oleg Tkachenko [MVP] November 12th, 2005 03:03 AM
Guest - n/a Posts
#3: Re: SelectSingleNode and Regular Expressions?

Craig Buchanan wrote:
[color=blue]
> Is it possible to use regular expressions in an XMLNode.SelectSingleNode
> method?[/color]

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/d...xml11172003.asp

--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com
 
Not the answer you were looking for? Post your question . . .
196,848 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,848 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors