title: How to read all child elements with tag names and their value from a xml file?
body: <p>I've a xml file in which I'm storing some HTML content in an element tag called <code>&lt;body&gt;</code>. Now I'm trying to read all the HTML content of body tag using XML DOM in JavaScript.</p>
  
  <p>I tried this code:</p>
  
  <pre><code>var xmlDoc=loadXMLDoc('QID_627.xml');
  var bodytag = xmlDoc.getElementsByTagName("body");
  document.write(bodytag);
  </code></pre>
  
  <p>but it is showing [object HTMLCollection] message on the browser screen.</p>