title: Get HTML content from XML tree with Dom in Android
body: <p>I have an Xml like this:</p>
  
  <pre><code>  &lt;root&gt;
      &lt;item&gt;
      &lt;content type="HTML"&gt;
         &lt;![CDATA[&lt;html&gt;
          &lt;head&gt;&lt;/head&gt;
          &lt;body&gt;something goes there&lt;/body&gt;
         &lt;/html&gt;]]&gt;
      &lt;/content&gt;         
     &lt;/item&gt;
     &lt;item&gt;
      &lt;content type="Text"&gt;
        Something goes there
      &lt;/content&gt;         
     &lt;/item&gt;
    &lt;/root&gt;
  </code></pre>
  
  <p>With content is text type, I can get with <em>node.getTextContent()</em>.<br>The problem is I want to get all the Html content from Xml tree. So the result I want to get is the string:</p>
  
  <pre><code>  "&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;some thing goes there&lt;/body&gt;&lt;/html&gt;"
  </code></pre>
  
  <p>How can I do that with Document (DOM) in Android?<br>
  <strong>Note</strong>: Because I have to edit some xml content, so I can't use SAX.</p>