This chapter provides notes and tutorial examples on XML Schema basics. Topics include writing schema XML documents, declaring root element, specifying element datatype, defining simple and complex datatypes.
We had a discussion about this at work. We came up with a different rule: if something is meta-data about an element use an attribute, otherwise an element. It seems to be in line with this argument. But as always: it's never that clear cut.