OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] specific element vs. generic element with a type attribute

[ Lists Home | Date Index | Thread Index ]

On 3/12/06, Tolkin, Steve <Steve.Tolkin@fmr.com> 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




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS