[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

  • To: "Tolkin, Steve" <Steve.Tolkin@f...>
  • Subject: Re: specific element vs. generic element with a type attribute
  • From: "Peter Hunsberger" <peter.hunsberger@g...>
  • Date: Mon, 13 Mar 2006 08:41:50 -0600
  • Cc: xml-dev@l...
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NXDZkgZ2FIau4+dO2Wm1smPGjcQ1JKrpmlNuAEUUyt/lWaflVTL1e/Y3gpZg8MKoi9QlkVDdzEx14rWB7n0Uh7o1nlKHJRu3vDHLRzME0IBhYLilZ1Pii9LVlKy4vFDLtjrglfWJKrav3v/T3lEgJYIgdhZLvBwF/xbb5w4oH4Q=
  • In-reply-to: <493A37523A8D17448240DA1DDDE924B40686D050@M...>
  • References: <AcZEILZ7K7lqSB2iQ3mCaAX1L8nR9gB2B8BwAAqkUSA=> <493A37523A8D17448240DA1DDDE924B40686D050@M...>

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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.