Utterly disagree. Attributes can actually have validated contents, such as enumerated lists, etc, and are attractively terse.
Over-reliance on elements are why Maven pom files are such a verbose disaster, and probably the main reason why web developers puke when trying to stream data. Restating element names make for illegible, bloated data. Attribute-heavy XML is attractively terse and benefits from validation (unlike JSON).
<fruit> <id>10</id> <name>orange</name> </fruit>
Which one is better? I find it hard to decide, and I believe most people do. And that's why we see it mixed, often in the same XML document.