I prefer to use XPath to get the list of
Time
nodes.
Try this code:
Xml.XmlNodeList xmlNodes;
Xml.XmlDocument xmlDoc = New Xml.XmlDocument();
xmlDoc.LoadXml(strXML);
const string xpathQuery = "/Layers/Layer[@displayName='SatelliteVis']/Service/Times/Time";
xmlNodes = xmlDoc.SelectNodes(xpathQuery);
for (int x = 0; x < xmlNodes.Count; x++)
{
listbox1.add(xmlNodes(x).InnerText);
}