XML Document Design
When designing XML Document we are faced with the question of which parts of the data should be held in an attribute and which parts in an element.
Canonical data should be held within elements. IF the data is Metadata about the canonical should be held within attributes.
<section> <section-id>100</section-id> <section-name>Section Name</section-name> <section-data>1234567890</section-data> <section-data-format>PIC 9(10)</section-data-format> </section> <section id=100 name="Section Name"> <section-data format="PIC 9(10)">1234567890</section-data> </section>