I am trying to count all the nodes within an xml document using XPathDocument
the code im using is
var xmlPathDoc = new XPathDocument(new StringReader(xml));
XPathNavigator documentNav = xmlPathDoc.CreateNavigator();
is there a way to count these when i dont know the name of the nodes
i wanted to use something like
int nodeCount = documentNav.Select("/").Count;
but wasnt sure what to put in the select part
thanks
simon