title: Read from xml to string list C#
body: <p>I have these XML file:</p>
  
  <pre><code>&lt;cteProc xmlns="http://www.portalfiscal.inf.br/cte" versao="1.04" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;CTe xmlns="http://www.portalfiscal.inf.br/cte"&gt;
          &lt;infCte versao="1.04" Id="CTexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"&gt;
              &lt;ide&gt;
                  &lt;compl&gt;
                      &lt;emit&gt;
                          &lt;rem&gt;
                              &lt;CNPJ&gt;11111111111&lt;/CNPJ&gt;
                              &lt;IE&gt;2222222&lt;/IE&gt;
                              &lt;xNome&gt;Teste&lt;/xNome&gt;
                              &lt;enderReme&gt;
                                  &lt;xLgr&gt;xxxxxxx xxxxxx&lt;/xLgr&gt;
                                  &lt;nro&gt;S/N&lt;/nro&gt;
                                  &lt;xCpl&gt;AREA C&lt;/xCpl&gt;
                                  &lt;xBairro&gt;PARQ. xxxxxx&lt;/xBairro&gt;
                                  &lt;cMun&gt;125455&lt;/cMun&gt;
                                  &lt;xMun&gt;xxxxxx&lt;/xMun&gt;
                                  &lt;CEP&gt;548848&lt;/CEP&gt;
                                  &lt;UF&gt;AA&lt;/UF&gt;
                                  &lt;xPais&gt;BRASIL&lt;/xPais&gt;
                              &lt;/enderReme&gt;
                              &lt;infNFe&gt;
                                  **&lt;chave&gt;1&lt;/chave&gt;**
                                  **&lt;chave&gt;2&lt;/chave&gt;**
                                  **&lt;chave&gt;3&lt;/chave&gt;**
                              &lt;/infNFe&gt;
                          &lt;/rem&gt;
                          &lt;exped&gt;
                              &lt;CNPJ&gt;2342342342342&lt;/CNPJ&gt;
                              &lt;IE&gt;15342683242345480&lt;/IE&gt;
                                  ...........................
  </code></pre>
  
  <p>And I need to get  values and put inside a string</p>
  
  <p>I try to do this:</p>
  
  <pre><code>var ListaChave = new List&lt;string&gt;();
  
  var lista = (from c in xDoc.Descendants(ns + "/rem/chave") select c.Value).ToList();
  
  foreach (string s in lista)
    {
      add the values.....
    }
  </code></pre>
  
  <p>But the s var is null. I don´t know how to get these values. Anybody can help me please!?</p>