Moving to XML
|
When to use which
-
When you may have a value which is a complex data item, use
an element
- example: agenda containing agenda items
-
When you may have many values of the same type, use an
element.
-
When you may have a long simple text value, use an element
- example: title of an agenda item
-
When you always have just one short simple text value, use
an attribute
- example: proposer of an agenda item
<meeting id="June Board Meeting">
<agenda>
<item proposer="Simon Brooke">
<title>
Adoption of new project management
procedures manual
</title>
</item>
<item proposer="Angela Stormont">
<title>
Transfer of shares
</title>
</item>
</agenda>
</meeting>