title: c# SelectSingleNode in xml returns null. There is no similar resolutions this issue at this site
body: <p>I've got the problem with reading XML string.
  Here I've got the following one:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;SplitterLayoutDataSet xmlns="http://tempuri.org/SplitterLayoutDataSet.xsd"&gt; 
      &lt;SplitterLayout&gt; 
          &lt;SplitterName&gt;mainSplitContainerControl&lt;/SplitterName&gt; 
              &lt;SplitterPosition&gt;0.2213375796178344&lt;/SplitterPosition&gt; 
       &lt;/SplitterLayout&gt; 
  &lt;/SplitterLayoutDataSet&gt;
  </code></pre>
  
  <p>So, I want to read <code>&lt;SplitterName&gt;</code> tag wih the following code:
  </p>
  
  <pre><code>XmlElement rootElement = doc.DocumentElement;
  rootElement.RemoveAllAttributes();
  if (rootElement != null)
      {
          foreach (KeyValuePair&lt;Control, object&gt; key in SaveLayoutControls)
          {
              Control c = key.Key;
              XmlElement el = rootElement.SelectSingleNode("SplitterName") as XmlElement;
              if (el != null)
              {
                  if (c is GridControl)
                      SetGridLayout(el, c as GridControl);
                  else if (c is SplitContainerControl)
                      SetSplitContainerLayout(el, c as SplitContainerControl);
                  else if (c is TreeList)
                      SetTreeListLayout(el, c as TreeList);
                  else if (c is CollapsibleSplitter)
                      SetCollapsibleSplitterLayout(el, c as CollapsibleSplitter);
                  else if (c is Splitter)
                      SetSplitterLayout(el, c as Splitter);
                  }
              }
         }
  </code></pre>
  
  <p>I want to read the "el" field, but it returns me NULL value. Are there any ideas to resolve this issue? Because I tried many ways and had no result. Thanks</p>