<format>
<record id="1">
<field name="id" value="1"/>
<field name="name" value="abc">blah blah</field>
<field name="attribute">this is the attribute value</field>
<field name="end_of_record" value="True"/>
</record>
<record id="2">
...
</record>
</format>
And yes, these types of abominations are everywhere.The only way to avoid being called a Bozo when producing XML is to either
a) ensure that humans never had to see this craziness
b) don't use XML
XML as a config file format, in particular, is probably one of the worst ideas in computing.