title: Using XmlDocument to Retrieve values in c#
body: <p>I am using <code>XmlDocument()</code> for parsing a file like **.opf ** for my application of EpubReader.</p>
  
  <pre><code>&lt;item id="W01MB154" href="01MB154.html" media-type="application/xhtml+xml" /&gt;
  &lt;item id="W000Title" href="000Title.html" media-type="application/xhtml+xml" /&gt;
  </code></pre>
  
  <p>with</p>
  
  <pre><code>  &lt;itemref idref="W000Title" /&gt;
    &lt;itemref idref="W01MB154" /&gt;
  </code></pre>
  
  <p>These values in same file.</p>
  
  <p>Here I know the value of <strong>id</strong> within the tag of <strong>item</strong>, after that I want to know the value of the  <strong>href</strong> element.</p>
  
  <p>What I have to do is compare the value <strong>idref</strong> element in the <strong>itemref</strong> tag with element value of <strong>id</strong> in the tag <strong>item</strong>. Here I know the <strong>id</strong> value which is <em>W01MB154</em>.</p>
  
  <p>Simply, I want to know the next value of <strong>id</strong> which is <strong>href</strong> element, Using XmlDocument().</p>