[Home] [By Thread] [By Date] [Recent Entries]
On 3/12/06, Tolkin, Steve <Steve.Tolkin@f...> wrote: > Which is better: using a set of specific elements or a generic element > with a type attribute? I can't add much to the advice you've already got except to note that sometimes traditional data modelling can help make such decisions. For example, if you have an object model where orangeFee and yellowFee are treated differently then that tells you something. Similarly, if you've got a database schema that has separate tables then that also tells you something. In such cases, using the specific elements may make more sense. Having said that, there are times you might want specific elements even when neither of these conditions is true. In such cases name spaces can help partition off generic classes of elements that are individually names. -- Peter Hunsberger
|

Cart



