000823-1:

XML information can sometimes be specified either as attributes or as elements, for example
   <book title="Elektronic Mail"/>
or
   <book><title>Electronic Mail</title></book>
Discuss pros and cons of these alternative methods.

Answer:

Advantage with attribute: Gives some type control, for example you can enumerate allowed values or specify a default value. With ID/IREF can references between objects be handled.

Advantage with element: Can be repeated with multiple values, Can have an internal substructure.

List of exam questions