title: Does root tag have attributes in XML
body: <p>This is a sample xml I am trying to create and could not find any documentation on root tag.
  But every xml document should have a root tag is all I know.</p>
  <pre><code>  &lt;payroll  month=&quot;JAN2021&quot;&gt;  
        &lt;emp ID=&quot;123&quot;&gt;
           &lt;name&gt;xyz&lt;/name&gt;
           &lt;age&gt;50&lt;/age&gt;
        &lt;/emp&gt;
      &lt;/payroll&gt;
  </code></pre>