title: Using .Net how do I deserialize the following xml?
body: <p>I have the following xml (see below) that I want to de-serialize to the class Rule. I have not found the magical combination of xml attributes that allows me to store as text the xml content from the Parameters node in my xml input. 
  I need an object of type Rule having the property <code>Name = "Rule1"</code> and property <code>Parameters = 
  "&lt;User&gt;Tommy&lt;/User&gt;&lt;Database&gt;local&lt;/Database&gt;"</code></p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>&lt;Rule&gt;
    &lt;Name&gt;Rule1&lt;/Name&gt;
    &lt;Parameters&gt;
      &lt;User&gt;Tommy&lt;/User&gt;
      &lt;Database&gt;local&lt;/Database&gt;
    &lt;/Parameters&gt;
  &lt;/Rule&gt;
  
  class Rule
  {
    [XmlElement("Name")]
    public string Name { get; set; }
    [XmlElement("Parameters")]
    [XmlText(typeof(string))]
    public string Parameters { get; set; }
  }
  </code></pre>
  
  <p>EDIT: I don't think I have been clear enough. I need to have the entire node named Parameters serialized to a string not to a custom class. As an example if an xml document was processed containing this</p>
  
  <pre><code>  &lt;Parameters&gt;
      &lt;X&gt;xxxx&lt;/X&gt;
      &lt;Y&gt;yyyy&lt;/Y&gt;
    &lt;/Parameters&gt;
  </code></pre>
  
  <p>I need it deserialized to the string "&lt;X>xxxx&lt;Y>yyyy"
  If a different xml document contained this</p>
  
  <pre><code>  &lt;Parameters&gt;
      &lt;A&gt;aaaa&lt;/A&gt;
      &lt;B&gt;bbbb&lt;/B&gt;
    &lt;/Parameters&gt;
  </code></pre>
  
  <p>I need it deserialized to the string "&lt;A>aaaa&lt;B>bbbb"</p>