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
Dave L
"Hans Kesting" <ne*********@spamgourmet.comwrote in message
news:eG**************@TK2MSFTNGP02.phx.gbl...
on 18-9-2008, DaveL supposed :
>Is there a method/funciton in xmldocument
to count all nodes in a xml doc
or do i have to write my own
thanks
DAveL
On XmlDocument there is a SelectNodes() method that accepts an XPath
expression and returns a list of matching nodes. Get the Count of that.
Hans Kesting