C# - Convert XML String to Object
<p>I am receiving XML strings over a socket, and would like to convert these to C# objects.</p>

<p>The messages are of the form:</p>

<pre><code>&lt;msg&gt;
   &lt;id&gt;1&lt;/id&gt;
   &lt;action&gt;stop&lt;/action&gt;
&lt;/msg&gt;
</code></pre>

<p>I am new to .Net, and am not sure the best practice for performing this. I've used JAXB for Java before, and wasn't sure if there is something similar, or if this would be handled a different way.</p>

<p>Thanks.</p>
