this is a sweeping statement, and not true.
for example, i often use xml documents with no text - for example
<contraindications> <pregnancy/> </contraindications>
and really the rule of thumb about attributes vs elements is more about if you are going to need chikdren of item - easier to extend elements with child nodes..