title: XmlNodeList empty
body: <p>I got this xml.</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" &gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;GetSelectedModels xmlns="http://www.something/"&gt;
           &lt;!--Optional:--&gt;
           &lt;input xmlns="http://www.something/"&gt;
              &lt;X_Models&gt;
              &lt;ListOfModels&gt;
                 &lt;Model&gt;
                    &lt;ModelId&gt;163&lt;/ModelId&gt;
                 &lt;/Model&gt;             
              &lt;/ListOfModels&gt;
           &lt;/X_Models&gt;
           &lt;/input&gt;
        &lt;/GetSelectedModels&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>When I post it in SoapUi and it reaches my web service I want to work with the nodes.</p>
  
  <pre><code>XmlDocument docRequest = new XmlDocument();
  docRequest.LoadXml(xml);
  XmlNodeList models= docRequest.SelectNodes("X_Models/ListOfModels/Model");
  </code></pre>
  
  <p>models is 0 and the xml looks like this:</p>
  
  <pre><code> &lt;X_Modelsxmlns="http://www.something/"&gt;
              &lt;ListOfModels&gt;
                 &lt;Model&gt;
                    &lt;ModelID&gt;163&lt;/ModelID&gt;
                 &lt;/Model&gt;             
              &lt;/ListOfModelss&gt;
           &lt;/X_Models&gt;
  </code></pre>
  
  <p>If I post my xml like this with an alias: </p>
  
  <pre><code> &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:net="http://www.something/" &gt;
         &lt;soapenv:Header/&gt;
         &lt;soapenv:Body&gt;
            &lt;net:GetSelectedModels&gt;
               &lt;!--Optional:--&gt;
               &lt;net:input&gt;
                  &lt;X_Models&gt;
                  &lt;ListOfModels&gt;
                     &lt;Model&gt;
                        &lt;ModelId&gt;163&lt;/ModelId&gt;
                     &lt;/Model&gt;             
                  &lt;/ListOfModels&gt;
               &lt;/X_Models&gt;
               &lt;/net:input&gt;
            &lt;/net:GetSelectedModels&gt;
         &lt;/soapenv:Body&gt;
      &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>Then models will be 1 and the xml looks like this:</p>
  
  <pre><code> &lt;X_Models&gt;
   &lt;ListOfModels&gt;
                      &lt;Model&gt;
                            &lt;ModelID&gt;163&lt;/ModelID&gt;
                         &lt;/Model&gt;             
                      &lt;/ListOfModelss&gt;
                   &lt;/X_Models&gt;
  </code></pre>
  
  <p>Can anyone point me in the right direction on this? Thank you!</p>