might suit simple inputs.
</p>

<div class="org-src-container">
<pre class="src src-xml">&lt;root count="1" sep=""&gt;
   &lt;C count="2" sep=""&gt;
      &lt;2 count="1" sep="."/&gt;
      &lt;D count="1" sep="."/&gt;
   &lt;/C&gt;
   &lt;x.a count="3" sep=""&gt;
      &lt;1 count="1" sep="."/&gt;
      &lt;2 count="1" sep="."/&gt;
   &lt;/x.a&gt;
   &lt;Z count="1" sep=""/&gt;
   &lt;1.2 count="1" sep=""/&gt;
   &lt;A count="1" sep=""/&gt;
&lt;/root&gt;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<di