本文介绍了在C#中实现自己的XPathNavigator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个C#示例实现从微软的XPathNavigator类派生的类。任何一个都可以点我在这样的文章呢?

I am looking for a C# example implementation of a class derived from Microsoft's XPathNavigator class. Can any one point me at such an article?

因为你可能(也可能不会)知道,XmlNavigator目的是为了让一个叠加在大多数的任何数据的XPath导航模型。

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

我已经实现了我的派生XPathNavigator类,它工作得很好。很清楚,就是除了XPath表达式的递归搜索,即//*\".

I have implemented my derived XPathNavigator class and it works very well. Very well that is except for XPath expressions that search recursively, i.e. "//*".

我敢肯定,我有个微妙的问题在克隆,MoveToFirstChild,或通过MoveTo,并会取代我想这可能有助于看看另一个例子,如果一个存在。

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

另外,我相信,我已经看到,讨论该杂志的文章。我的搜索已被证明取得了什么。也许有人还记得这样的文章

Also, I am sure that I have seen magazine articles that discuss this. My searches have proved yielded nothing. Maybe someone remembers such an article.

推荐答案

看一下这篇文章由Aaron Skonnard:

Look at this article by Aaron Skonnard:

这提供了从的。

which provides an example of a class derived from XPathNavigator.

这篇关于在C#中实现自己的XPathNavigator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 09:36