Differences
This shows you the differences between the selected revisions of the page.
2010-10-17 | 2011-03-07 | ||
removing "robust" vb.net code (martin) | no summary (121.244.206.92) (hidden) | ||
Line 166: | Line 166: | ||
Console.WriteLine(file.SelectSingleNode("w:filename/@value", ns).Value); | Console.WriteLine(file.SelectSingleNode("w:filename/@value", ns).Value); | ||
} | } | ||
+ | } | ||
+ | XPathNodeIterator files = nav.Select("//w:file", ns); | ||
+ | Console.WriteLine(string.Format("There are {0} files and subdirectories:", files.Count)); | ||
+ | foreach (XPathNavigator file in files) | ||
+ | { | ||
+ | Console.WriteLine(file.SelectSingleNode("w:filename/@value", ns).Value); | ||
} | } | ||
</code> | </code> |