getting the value of elements in a nodelist
i have an Xml document loaded and have used the folwing to get the nodelist for all elements with the tag "item".
Code:
XmlNodeList nodelist = Info.GetElementsByTagName("item");
each "item" contains a number of nodes.
how can i find out how many nodes exist in each element.
i can use
Code:
foreach(XmlNode N in nodelist)
{
}
to iterate through the nodes but i need to determine the count of the nodes before i get to this foreach statement.
note: i am using an XmlDocument not an XmlReader.