<graduation date="2012-03-21"/>
<event type="graduation" date="2012-03-21"/>
The first design uses a “hardcoded approach to XML design.” The <graduation> element hardcodes the event.
In the generic approach the semantics is in the attribute value. In the hardcoded approach the semantics is in the element name.