title: .net webservice with XElement return type
body: <p>There is a way to make a webservice that returns a parameter of the type XElement?
  Now I'm working with XmlNode return type, but I want to get rid of using this old xml library.</p>
  
  <p>I'm using this:</p>
  
  <pre><code>XDocument doc = new XDocument();
  XElement xml = new XElement("produtos");
  doc.Add(xml);
  
  //...
  var xmlDoc = new XmlDocument();
  using (var xmlReader = doc.CreateReader())
  {
      xmlDoc.Load(xmlReader);
  }
  return xmlDoc;
  </code></pre>
  
  <p>I can't figure out why the webservice dont work with the XmlLinq lib</p>