title: Shortest way to deserialize XmlDocument
body: <p>I am looking for a clean and short way to deserialize a <code>XmlDocument</code> object. The closest thing I found was <a href="https://stackoverflow.com/questions/2694860/how-to-deserialize-xmldocument-to-object-in-c">this</a> but I am really wondering if there is no nicer way to do this (in .NET 4.5 or even 4.6) since I already have the XmlDocument.</p>
  
  <p>So currently this looks as follows:</p>
  
  <pre><code>// aciResponse.Data is a XmlDocument
  MyClass response;
  using (XmlReader reader = XmlReader.Create((new StringReader(aciResponse.Data.InnerXml))))
  {
      var serializer = new XmlSerializer(typeof(MyClass));
      response =  (MyClass)serializer.Deserialize(reader);
  }
  </code></pre>
  
  <p>Thanks for any better idea!</p>