BizTalk Server General - Element vs. Attribute guidelines

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2004 > Element vs. Attribute guidelines





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Element vs. Attribute guidelines
SP

2004-11-10, 5:48 pm

I think first approach is good for this case. You have
Person and its(his) properties. If the name itself has
properties then second option can be considered. Maintain
balance between depth and breadth.

-SP

>-----Original Message-----
>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
>
>
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com