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
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]
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
|
|
|
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.
Top Community Contributors
|