locked
Regular expressions in XPathNavigator RRS feed

  • Question

  • Hi all,

    I'd like to implement a function, which will search the XPathDocument (I'd like to use XPathNavigator). The problem is that xPathExpression is not so powerful to find, what I'm looking for. For example I'd like to find those nodes, which values match the pattern. The best way is to use regular expressions inside XPathNavigator (where I can specify the exact pattern). Unfortunately I haven't found a way how to use the reg. expressions with XPath.

    I read something about EXSLT.NET, but I didn't find an example, where is XPathNavigator.Select() method used and where the XPathExpression contains regular expression.

    Does anyone have experience with this issue or know about web page, where these examples are described?

    Thank you very much. Pavel

    Friday, January 26, 2007 3:26 PM

Answers