When it comes to using things like XSLT, XPath, and other things, using 
attributes becomes important.

Really, in general you want attributes to describe the data that the xmlText 
contains, and you want to use your attributes to help you sort, filter, and 
extract your data. For instance, in an XSL transform, you can use <xsl:sort 
select="[EMAIL PROTECTED]" /> as a valid expression... in other words, 
it'll sort by an attribute of an element, but it won't sort by xmlText (at 
least that I know of... I could be way wrong.)

So you describe the data with your attributes and you deliver the data with 
xmlText.

Laterz,
J

On 7/7/05, Andy <[EMAIL PROTECTED]> wrote:
> 
> When would I use an attribute to hold a value versus xmlText?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211410
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to