| Yossi Dahan 2004-11-11, 2:46 am |
| I've read somewhere once (sorry, can't remember when)
a nice rule of thumb I've adopted:
If the entity, the value, can exist on its own, its an element, if not its
an attribute.
Yossi Dahan
"Hugo Rodger-Brown" <hugo@coldhams.com> wrote in message
news:%23I8sWCzxEHA.1292@TK2MSFTNGP10.phx.gbl...
> I'm putting together some guidelines on schema form and would like to get
> other people's opinions on the element v attribute question.
>
> Consider the following:
>
> <People>
> <Person name="joe" age="30" />
> </People>
>
> or
>
> <People>
> <Person>
> <Name>joe</Name>
> <Age>30</Age>
> </Person>
> </People>
>
> Does anyone know of any guidelines on this? As a rule I tend to go for the
> attribute form - as it's lighter - but I don't really have any great
> argument either way?
>
> Hugo
> http://hugo.rodger-brown.com
>
>
|