But couldn't

<phone number="123-555-5555"/>,

be extended to

<phone number="555-5555" areacode="123"/>?

Just a thought :)

- Calvin


----- Original Message ----- 
From: "I-Lin Kuo" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 7:15 AM
Subject: Re: XML Best Practices - Resources


> There's one significant difference between attributes
> and tag content. Tag content allows the possibility of
> extension via further subdivision in the future. For
> example,
>
> <phone number="123-555-5555"/>,
> unlike
>
> <phone>
>   <number>123-555-5555</number>
> </phone>
>
> cannot be extended to
> <phone>
>   <areaCode>123</areaCode>
>   <number>555-5555</number>
> </phone>
>
> Attributes are more succinct. In my own usage, I
> prefer to use tags for data, and attributes for
> metadata -- data which describes the data
> --- "Michael T. Tangorre" <[EMAIL PROTECTED]>
> wrote:
> > I have been reading up on XML and there seems to be
> > alot of people that
> > favor more of an element approach as apposed to an
> > attribute approach.
> >
> > <phone>
> >     <type>mobile</type>
> >     <number>555-555-5555</number>
> >     <extension>1234</extension>
> > </phone>
> >
> >
> > Mike
> >
>
> =====
> I-Lin Kuo
> Macromedia CF5 Advanced Developer
> Sun Certified Java 2 Programmer
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Reply via email to