
But it is not okay to have:

2. Elements can be defined to be in a certain order (i..e sequence), while attributes can appear in any order.
The following link contains additional information on XML elements and attributes:
http://xml.coverpages.org/elementsAndAttrs.html