I want to read in all elements from an XML file. Currently I'm using XmlTextReader, and I loop through all the elements. However, XmlTextReader does not seem to give me a way to "look ahead" at other elements. What I mean by this is, once I find a certain element based on it value, I want to extract data from the next element or the next two elements. All elements that I need to process are at the same level in the hierarchy.
I could just read all the element data into my own local list of strings, but I thought maybe there was something else I could do.