title: How to convert xml Element and its child nodes into String in Java?
body: <p>Hi I want to convert XML node and its child into a string with its node names.</p>
  
  <p>For example I get a node from XML document which is look like this:</p>
  
  <pre><code>&lt;Name&gt;
    &lt;Work&gt;*86&lt;/Work&gt;
    &lt;Home&gt;*86&lt;/Home&gt;
    &lt;Mobile&gt;*80&lt;/Mobile&gt; 
    &lt;Work&gt;0&lt;/Work&gt;
  &lt;/Name&gt;
  </code></pre>
  
  <p>I want to convert whole node into string. With nodenames, not only text. Any help in this regards is greatly appreciated. Thanks.</p>