XPathDocument を使用して xml ドキュメント内のすべてのノードを数えようとしています
私が使用しているコードは
var xmlPathDoc = new XPathDocument(new StringReader(xml));
XPathNavigator documentNav = xmlPathDoc.CreateNavigator();
ノードの名前がわからない場合にこれらをカウントする方法はありますか
私は次のようなものを使いたかった
int nodeCount = documentNav.Select("/").Count;
しかし、選択部分に何を入れるかわかりませんでした
ありがとう
サイモン