It is rare in real-world XML that elements have children with the same type. Do you have a (non-divitis) example where the tags are all the same?
<contract><contract><contract><contract> […] ...
</contract>
</subcontracts>
</content>
</contract>
</subcontracts>
</content>
</contract>