title: Check xml node is exist or not?
body: <p>I want to check given node is exist or not in <code>*.xml</code> file.
  I try:</p>
  
  <pre><code> string language = node.SelectSingleNode("language") != null ? (node.SelectSingleNode("language").Value == "en" ? "en-US" : "en-US") : "en-US";
  </code></pre>
  
  <p>But I think its check only for node value.In some <code>xml</code> file I haven't node called <code>language</code> So its gives a  <code>Null Reference Ex..</code>.
  How to check Given node is exist or not in <code>*.xml</code> file? Thanks.</p>