title: Get children with tagname as <div> only in javascript
body: <p>I have a HTML as:</p>
  
  <pre><code>&lt;div id="xyz"&gt;
  
   &lt;svg&gt;......&lt;/svg&gt;
   &lt;img&gt;....&lt;/img&gt;
   &lt;div id = "a"&gt; hello &lt;/div&gt;
   &lt;div id = "b"&gt; hello
        &lt;div id="b1"&gt;I m a grand child&lt;/div&gt;     
   &lt;/div&gt;
   &lt;div id = "c"&gt; hello &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to get all the children with tags as "div" of the parent element with id = xyz in a javascript variable.</p>
  
  <p>Such that my output should be:</p>
  
  <pre><code>"&lt;div id = "a"&gt; hello &lt;/div&gt;
   &lt;div id = "b"&gt; hello
        &lt;div id="b1"&gt;I m a grand child&lt;/div&gt;     
   &lt;/div&gt;
   &lt;div id = "c"&gt; hello &lt;/div&gt;"
  </code></pre>