title: C# XmlDocument SelectNodes is not working
body: <p>I want to get the value from XML file but I failed. Can you please help me point out the problem ?? Because I already tried very hard to test and googling but I still can't spot the problem.</p>
  
  <p>XML :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
  &lt;Contacts&gt;
    - &lt;Contact&gt;
      &lt;ID&gt;xxx&lt;/ID&gt; 
        &lt;AutoUpdateEnabled&gt;false&lt;/AutoUpdateEnabled&gt; 
        &lt;LastChanged&gt;2013-05-29T01:53:59.4470000Z&lt;/LastChanged&gt; 
      - &lt;Profiles&gt;
          - &lt;Personal&gt;
                &lt;FirstName&gt;My First Name&lt;/FirstName&gt; 
                &lt;LastName&gt;My Last Name&lt;/LastName&gt; 
                &lt;UniqueName&gt;My Unique Name&lt;/UniqueName&gt; 
                &lt;SortName&gt;&lt;/SortName&gt; 
                &lt;DisplayName&gt;My Display Name&lt;/DisplayName&gt; 
            &lt;/Personal&gt;
      &lt;/Profiles&gt;
      - &lt;Phones&gt;
          - &lt;Phone&gt;
            &lt;ID&gt;3&lt;/ID&gt; 
            &lt;PhoneType&gt;Mobile&lt;/PhoneType&gt; 
            &lt;Number&gt;000-0000000&lt;/Number&gt; 
            &lt;IsIMEnabled&gt;false&lt;/IsIMEnabled&gt; 
            &lt;IsDefault&gt;false&lt;/IsDefault&gt; 
            &lt;/Phone&gt;
      &lt;/Phones&gt;
      - &lt;Locations&gt;
          - &lt;Location&gt;
                &lt;ID&gt;2&lt;/ID&gt; 
                &lt;LocationType&gt;Business&lt;/LocationType&gt; 
                &lt;CompanyName&gt;&lt;/CompanyName&gt; 
                &lt;IsDefault&gt;false&lt;/IsDefault&gt; 
            &lt;/Location&gt;
        &lt;/Locations&gt;
  &lt;/Contact&gt;
  - &lt;Contact&gt;
    &lt;ID&gt;xxx&lt;/ID&gt; 
    &lt;AutoUpdateEnabled&gt;false&lt;/AutoUpdateEnabled&gt; 
    &lt;LastChanged&gt;2013-05-29T01:53:25.2670000Z&lt;/LastChanged&gt; 
      - &lt;Profiles&gt;
          - &lt;Personal&gt;
                &lt;FirstName&gt;Person&lt;/FirstName&gt; 
                &lt;LastName&gt;Two&lt;/LastName&gt; 
                &lt;UniqueName&gt;&lt;/UniqueName&gt; 
                &lt;SortName&gt;&lt;/SortName&gt; 
                &lt;DisplayName&gt;Person Two&lt;/DisplayName&gt; 
            &lt;/Personal&gt;
        &lt;/Profiles&gt;
      - &lt;Emails&gt;
          - &lt;Email&gt;
                &lt;ID&gt;1&lt;/ID&gt; 
                &lt;EmailType&gt;Personal&lt;/EmailType&gt; 
                &lt;Address&gt;MyTest@gmail.com&lt;/Address&gt; 
                &lt;IsIMEnabled&gt;false&lt;/IsIMEnabled&gt; 
                &lt;IsDefault&gt;true&lt;/IsDefault&gt; 
            &lt;/Email&gt;
        &lt;/Emails&gt;
      - &lt;Locations&gt;
          - &lt;Location&gt;
                &lt;ID&gt;2&lt;/ID&gt; 
                &lt;LocationType&gt;Business&lt;/LocationType&gt; 
                &lt;CompanyName&gt;Testing Company&lt;/CompanyName&gt; 
                &lt;IsDefault&gt;false&lt;/IsDefault&gt; 
            &lt;/Location&gt;
        &lt;/Locations&gt;
      &lt;/Contact&gt;
   &lt;/Contacts&gt;
  </code></pre>
  
  <p>My Sample Code :</p>
  
  <pre><code>XmlDocument xmldoc = new XmlDocument();
  xmldoc.LoadXml("TheXMLFile.xml");
  
  xmldoc.DocumentElement.SelectNodes("contact")  // return 0 counts
  xmldoc.DocumentElement.SelectNodes("/contact")  // return 0 counts
  xmldoc.DocumentElement.SelectNodes("/contact")  // return 0 counts
  xmldoc.DocumentElement.SelectNodes("/contacts/contact")  // return 0 counts
  xmldoc.DocumentElement.SelectNodes("*")  // return 2 counts  !this works
  
  XmlNodeList elemList = xmldoc.DocumentElement.GetElementsByTagName("contact"); // return 2 counts  !this also works
  foreach (XmlNode node in elemList)
  {    
      node.SelectSingleNode("Profiles")  //return ""
      node.SelectSingleNode("/Profiles")  //return ""
      node.SelectSingleNode("//Profiles")  //return ""
      node.SelectSingleNode(".//Profiles")  //return ""
  }
  </code></pre>
  
  <p>I just want to get "FirstName, LastName, Email Address", the <code>SelectNodes</code> function just not working like expected... No clue at all ... please help. Thanks in advance</p>