Load XElement from string without namespaces
<p>I want to load an XElement from XML string that contains prefixes of namespaces. For example:</p>

<pre><code>string template = @"&lt;com:PersonName&gt;
  &lt;com:FirstName&gt;def&lt;/com:FirstName&gt;
      &lt;com:LastName&gt;abc&lt;/com:LastName&gt;
  &lt;/com:PersonName&gt;";
</code></pre>

<p>In above XML com refers to a namespace like <code>xmlns:com = "somevalue"</code>
When I used <code>XElement.Parse(xml)</code> method it throws an error.</p>

<p>I have also tried to load such XML in XmlDocument and it allows me to achieve this using xmlreader and set namespaces to off but I want to do it using XDocuemnt or XElement.</p>

<p>Is it possible to load this string in Xelement without providing namespace ?</p>