title: How to convert XmlNode into XElement?
body: <p>I have an old <code>XmlNode</code>-based code. but the simplest way to solve my current task is to use <code>XElement</code> and LINQ-to-XML. The only problem is that there is no direct or obvious method for converting a <code>XmlNode</code> to a <code>XElement</code> in .NET Framework.</p>
  
  <p>So for starters, I want to implement a method that receives a <code>XmlNode</code> instance and converts it to a <code>XElement</code> instance.</p>
  
  <p>How can I implement this conversion?</p>