Implementing my own XPathNavigator in C #

I am looking for an implementation of the C # class of a class derived from the Microsoft XPathNavigator class. Can someone point me to such an article?

As you may (or may not) know, XmlNavigator is designed to allow overlaying XPath navigation on most any data model.

I have implemented my XPathNavigator derived class and it works very well. It is very good that with the exception of XPath expressions that are searched recursively, that is, "// *".

I am sure that I have a subtle bug in Clone, MoveToFirstChild or MoveTo overides, and I thought it might help to look at another example if it exists.

Also, I'm sure I saw articles in magazines that discuss this. My searches proved that they did not give anything. Maybe someone remembers such an article.

+4
source share
2 answers

Take a look at this article by Aaron Skonnar:

" XPath selection and custom features and more ,

which provides an example class derived from XPathNavigator .

+3
source

Error in your implementation or in MS? If it's MS, you can use a reflector to look inward.

0
source

All Articles