[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: specific element vs. generic element with a type attribute
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|