title: Go back to parent node using XmlReader
body: <p>I'm looking at <a href="https://stackoverflow.com/a/6473542/75500">the example</a> below, and I wonder, after I'm done reading all the <code>image</code> nodes, how do I get back reading the <code>last_modified_at</code> node from parent element?
  (See my comments in last few lines of code)</p>
  
  <pre><code>public class StackOverflow_6473251
  {
      public static void Test()
      {
          string xml = @"
             &lt;movies&gt;
               &lt;movie&gt;
                 &lt;score&gt;8.582207&lt;/score&gt;
                 &lt;popularity&gt;3&lt;/popularity&gt;
                 &lt;translated&gt;true&lt;/translated&gt;
                 &lt;adult&gt;false&lt;/adult&gt;
                 &lt;language&gt;en&lt;/language&gt;
                 &lt;original_name&gt;Transformers&lt;/original_name&gt;
                 &lt;name&gt;Transformers&lt;/name&gt;
                 &lt;alternative_name&gt;The Transformers&lt;/alternative_name&gt;
                 &lt;type&gt;movie&lt;/type&gt;
                 &lt;id&gt;1858&lt;/id&gt;
                 &lt;imdb_id&gt;tt0418279&lt;/imdb_id&gt;
                 &lt;url&gt;http://www.themoviedb.org/movie/1858&lt;/url&gt;
                 &lt;votes&gt;28&lt;/votes&gt;
                 &lt;rating&gt;7.2&lt;/rating&gt;
                 &lt;certification&gt;PG-13&lt;/certification&gt;
                 &lt;overview&gt;The Earth is caught in the middle of an intergalactic war /overview&gt;
                 &lt;released&gt;2007-07-04&lt;/released&gt;
                 &lt;images&gt;
                      &lt;image type=""poster"" url=""http://hwcdn.themoviedb.org/posters/304/4bc91347017a3c57fe007304/transformers-original.jpg"" size=""original"" id=""4bc91347017a3c57fe007304""/&gt;
                      &lt;image type=""poster"" url=""http://hwcdn.themoviedb.org/posters/304/4bc91347017a3c57fe007304/transformers-mid.jpg"" size=""mid"" id=""4bc91347017a3c57fe007304""/&gt;
                      &lt;image type=""poster"" url=""http://hwcdn.themoviedb.org/posters/304/4bc91347017a3c57fe007304/transformers-cover.jpg"" size=""cover"" id=""4bc91347017a3c57fe007304""/&gt;
                      &lt;image type=""poster"" url=""http://hwcdn.themoviedb.org/posters/304/4bc91347017a3c57fe007304/transformers-thumb.jpg"" size=""thumb"" id=""4bc91347017a3c57fe007304""/&gt;
                      &lt;image type=""backdrop"" url=""http://hwcdn.themoviedb.org/backdrops/2ce/4bc91339017a3c57fe0072ce/transformers-original.jpg"" size=""original"" id=""4bc9133s9017a3c57fe0072ce""/&gt;
                      &lt;image type=""backdrop"" url=""http://hwcdn.themoviedb.org/backdrops/2ce/4bc91339017a3c57fe0072ce/transformers-poster.jpg"" size=""poster"" id=""4bc91339017a3c57fe0072ce""/&gt;
                      &lt;image type=""backdrop"" url=""http://hwcdn.themoviedb.org/backdrops/2ce/4bc91339017a3c57fe0072ce/transformers-thumb.jpg"" size=""thumb"" id=""4bc91339017a3c57fe0072ce""/&gt;
                 &lt;/images&gt;
               &lt;last_modified_at&gt;2010-04-26 03:26:14&lt;/last_modified_at&gt;
         &lt;/movie&gt;
       &lt;/movies&gt;";
          XmlReader r = XmlReader.Create(new StringReader(xml));
          r.ReadToFollowing("original_name");
          string title = r.ReadElementContentAsString("original_name", r.NamespaceURI);
          r.ReadToFollowing("images");
          int imageCount = 0;
          if (r.ReadToDescendant("image"))
          {
              do
              {
                  Console.WriteLine("Image {0}", ++imageCount);
                  Console.WriteLine("  Type: {0}", r.GetAttribute("type"));
                  Console.WriteLine("  URL: {0}", r.GetAttribute("url"));
                  Console.WriteLine("  Size: {0}", r.GetAttribute("size"));
                  Console.WriteLine("  ID: {0}", r.GetAttribute("id"));
              } while (r.ReadToNextSibling("image"));
          }
          //read last_modified_at
          //reader.Name evaluates to 'images' at execution time
          //reader.NodeType evaluates to 'EndElement' at execution time
      }
  }
  </code></pre>
  
  <h2>UPDATE</h2>
  
  <p>In a <a href="http://pastebin.com/ZetsSmmL" rel="nofollow noreferrer">similar</a> scenario, I'm trying to achieve the same result successfully accomplished by the answers below unsuccessfully, and fails at the highlighted line (41) by returning false.<br>
  The problem is going from the last <code>abbr</code> to <code>intervals</code>. And here is where I can't see the difference from the example presented above.</p>
  
  <p><strong>Update</strong>
  <a href="http://pastebin.com/Un0B9i1P" rel="nofollow noreferrer">Here</a> is a complete example.</p>