title: Using XPath to read xml
body: <p>I have this XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;bookstore&gt;
    &lt;book id="ISBN-NUMBER"&gt;
      &lt;title&gt;
        The Autobiography of Benjamin Franklin
      &lt;/title&gt;
      &lt;author type="major"&gt;
        &lt;first-name&gt;
          Benjamin
        &lt;/first-name&gt;
        &lt;last-name&gt;
          Franklin
        &lt;/last-name&gt;
      &lt;/author&gt;
      &lt;price&gt;
        8.99
      &lt;/price&gt;
    &lt;/book&gt;
    &lt;book id="ISBN-NUMBER"&gt;
      &lt;title&gt;
        The Confidence Man
      &lt;/title&gt;
      &lt;author type="major"&gt;
        &lt;first-name&gt;
          Herman
        &lt;/first-name&gt;
        &lt;last-name&gt;
          Melville
        &lt;/last-name&gt;
      &lt;/author&gt;
      &lt;price&gt;
        11.99
      &lt;/price&gt;
    &lt;/book&gt;
    &lt;book id="ISBN-NUMBER"&gt;
      &lt;title&gt;
        The Gorgias
      &lt;/title&gt;
      &lt;author type="major"&gt;
        &lt;name&gt;
          Plato
        &lt;/name&gt;
      &lt;/author&gt;
      &lt;price&gt;
        9.99
      &lt;/price&gt;
    &lt;/book&gt;
  &lt;/bookstore&gt;
  </code></pre>
  
  <p>How do i read it with XPath? I've used:</p>
  
  <pre><code>XPathDocument doc = new XPathDocument(stream);
  XPathNavigator nav = doc.CreateNavigator();
  XPathNodeIterator node = nav.Select("bookstore/book");
  
  while (node.MoveNext())
  </code></pre>
  
  <p>but how do i move on from here? i guess i need a swtich statement to swtich if node is title, author, and price. if book then i need to read books id, same with author and type.</p>