XML Elements vs. Attributes
XML elements as well as attributes can be used to provide the same information about an entity in an XML database. The only difference lies in the way they are written.
For example:<book name = “Da Vinci Code”> ..... is an example of using attributes.
The same information can be provided in the element form as follows:
<book>
<name>Da Vinci Code</name>
</book>