Cursor-style iteration pattern
When working with cursor-style APIs like the XmlReader or XPathNavigator, the pattern usual becomes something like this (note this is the same code for both APIs):
http://weblogs.asp.net/cazzu/archive/2004/07/12/CursorStyleIteration.aspx