I am using .NET XmlReader because the xml file is way too big to use a DOM or other in-memory class, but I need to be able to somehow walk back up the xml hierarchy from the current position in XmlReader. Is there a way to do that? I sometimes need to walk back up to the level one parent to retrieve content. I could cache some xml as I parse, but these are big xml files so I dont want to store a lot of data as I parse through the xml as that could potentially exceed memory, or start slowing the application as it adds data to a growing memory structure.But maybe that is my only recourse.
Is there an xml parser, in any language, that can handle this?