title: XML Element and Namespace
body: <p>I have the following method to parse XMLElements:</p>
  
  <pre><code>DisplayMessages(XElement root)
  {
    var items = root.Descendants("Item");
    foreach (var item in items)
    {
       var name = item.Element("Name");
       ....
    }
  }
  </code></pre>
  
  <p>In debug mode, I can see the root as XML like this:</p>
  
  <pre><code>&lt;ItemInfoList&gt;
    &lt;ItemInfo&gt;
      &lt;Item&gt;
        &lt;a:Name&gt;item 1&lt;/a:Name&gt;
        ...
      &lt;Item&gt;
      ...
  </code></pre>
  
  <p>and var name is null (I expect to get "item 1"). I tried to use "a:Name" but it caused exception("character : cannot be used in name"). I am not sure if I have to set namespace in root XElelement or not. All the xml node under root should be in the same namespace.</p>
  
  <p>I am new to XElement. In my codes, item.Element("Name") will get its children node "Name"'s value value, is that right?</p>