Hi,
On 12/05/10 10:44 +0100, Mark McLoughlin wrote:
Just wanted to bring this up again - it got lost in the mix
I don't feel very strongly about it either way, but I do prefer:
POST /storagedomains/1234/attachments HTTP/1.1
<attachment><datacenter id="5678"/></attachment>
over:
POST /storagedomains/1234/attachments HTTP/1.1
<attachment><datacenter><id>"5678"</id></datacenter></attachment>
Using 'id' as an atribute looks more naturally for me.
From w3schools.com: <quote> The ID above is just an identifier, to identify the different notes. It is not a part of the note itself.
What I'm trying to say here is that metadata (data about data) should be stored as attributes, and that data itself should be stored as elements." </quote>
-- Michal