I see the following simple XML.
<?xml version="1.0"?>
<customers>
<customer ID="C001">
<name>Acme Inc.</name>
<phone>12345</phone>
</customer>
<customer ID="C002">
<name>Star Wars Inc.</name>
<phone>23456</phone>
</customer>
</customers>
I am wondering why the ID is stored as an attribute instead of another internal node?
Is there any best pratice or conventions for this?
What's the difference between a node value and a node attribute?
Thanks.