Did the elements often have immediate child elements that had immediate child elements (and so on) of the same type? Like:
<contract><contract><contract><contract> […] <contract><contract><contract><contract> […] ...
</contract>
</subcontracts>
</content>
</contract>
</subcontracts>
</content>
</contract>