title: Linq query of XML attributes
body: <p>So I'm trying to write a simple query that grabs all of a certain attribute from an XML file, but nothing seems to work. I've been able to do this with several other XML's but for some reason the one I'm working with here just won't cooperate. Any suggestions or advice would be hugely appreciated.</p>
  
  <p>Here's what the XML looks like.</p>
  
  <pre><code>&lt;Doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="Name" xsi:schemaLocation="[there's a link here]" Name="Name"&gt;
  &lt;Wrapper&gt;
  &lt;Box_Collection&gt;
  &lt;Box name="Test A" test="Test B"/&gt;
  &lt;Box name="Test C" test="Test D"/&gt;
  &lt;Box name="Test E" test="Test F"/&gt;
  &lt;/Box_Collection&gt;
  &lt;/Wrapper&gt;
  &lt;/Doc&gt;
  </code></pre>
  
  <p>Here's my C# code:</p>
  
  <pre><code>        XDocument customers = XDocument.Load(@"C:\Users\folder\file.xml");
  
          IEnumerable&lt;string&gt; names =
              from c in customers.Descendants("Box").Attributes("name")
              select c.Value;
  
          string nameList = "Names:";
  
  
          foreach (string c in names)
          {
              namer += " " + c;
          }
  
          textBox.AppendText(nameList);
  </code></pre>