Count Total Number of XmlNodes in C#
        Posted  
        
            by mjmcloug
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mjmcloug
        
        
        
        Published on 2010-04-15T12:50:02Z
        Indexed on 
            2010/04/15
            12:53 UTC
        
        
        Read the original article
        Hit count: 279
        
Hey,
I'm trying to find a way to get the total number of child nodes from an XmlNode recursively.
That it is to say I want to count all the children, grand children etc.
I think its something like
node.SelectNodes(<fill in here>).Count
but I don't know what the XPath is.
Thanks
© Stack Overflow or respective owner