title: How to get InnerText and InnerXml of a Node from XmlDocument?
body: <p>For example, I have this xml string:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;data&gt;
     &lt;text&gt;How to get &lt;bold&gt;all&lt;/bold&gt; this string's content?&lt;/text&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>I want to get all these elements in an array of objects (for each object I have a class), without loosing their structure:</p>
  
  <pre><code>[1] (TextClass; where bold = false) How to get 
  [2] (TextClass; where bold = true) all
  [3] (TextClass; where bold = false) this string's content?
  </code></pre>
  
  <p>All I'm getting using <code>XmlDocument</code> and <code>XmlNode</code> classes right now is InnerText Or InnerXml separately.</p>
  
  <pre><code>XmlDocument xmlDoc = new XmlDocument();
  xmlDoc.Load("example.xml");
  foreach (XmlNode child in xmlDoc.DocumentElement.ChildNodes)
  {
     string chName = child.Name; // text
     string text = child.InnerText; // How to get all this string's content?
     string xml = child.InnerXml; // How to get &lt;bold&gt;all&lt;/bold&gt;this string's content?
  }
  </code></pre>
  
  <p>Is it possible?</p>