
<tel preferred=”true”>513-555-8889</tel>
<tel>513-555-7098</tel>
</entry>
3. Generally speaking, elements offer more room for extension and reuse
than attributes because elements are highly structured.
For example, in Listing 10.22, the address element is reused in the sender
and receiver elements. It is reused with its complete structure.
Lessons Learned
It is clear that elements and attributes have different characteristics.
Unfortunately, nobody seems to agree on how to exploit them best.
Over time, you will develop your own set of rules of when to use an
attribute and when to use an element. My set of rules, as I have already
explained, is to use ...