title: Linq-to-XML get elements with namespace
body: <p>i am using linq-to-xml to search elements. </p>
  
  <pre><code> var doc = XDocument.Load(reader);
                      var ns = doc.Root.Attribute("xmlns").Value;
                      var result = (from u in doc.Descendants(XName.Get("MyElement", ns))
  </code></pre>
  
  <p>i need to get rid of using XName.Get whenever i try to find an element in xml. how can i set a default namespace to XDocument so that it will not bother when searching.</p>
  
  <p>Regards.</p>