It depends on the kind of nodes you are looking for
xmlDocumentInstance.SelectNodes("//*").Count
gives you the number of all element nodes
xmlDocumentInstance.SelectNodes("//@*").Count
the number of all attribute nodes (in the XPath 1.0 data model where
namespace declarations are not attributes).
Right, but it only has the count of its nodes
child node mite have child node example
<ROOT>
<ONE>
<TWO/>
<THREE/>
<TWO/>
</ONE>
<TWO>
<THREE/>
</TWO>
</ONE>
</ROOT>
In the above i have a total of 6 nodes, i wonderd if XmlDocument Has a Count
For all Nodes in a complete Document
Seems Like i'll need to Write a method/function for recursion through the
document
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.