title: how to differentiate these two xml tags with childnodes
body: <p>i have two tags in my sample xml as below,</p>
  
  <pre><code> &lt;EmailAddresses&gt;2&lt;/EmailAddresses&gt;
  
   &lt;EmailAddresses&gt;
          &lt;string&gt;Allen.Patterson01@fantasyisland.com&lt;/string&gt;
           &lt;string&gt;Allen.Patterson12@fantasyisland.com&lt;/string&gt;
   &lt;/EmailAddresses&gt;
  </code></pre>
  
  <p>how to differentiate these two xml tags based on the childnodes that means how to check that first tag has no childnodes and other one has using DOM php</p>