Andy,

>When would I use an attribute to hold a value versus xmlText?

When it makes sense to do so. ;) 

There really is no absolute rule to this, but generally speaking I leave
xmlText for when I need to define large amounts of content that are static
and use attributes to define very specific aspects of the tag (which are
normally single word values.)

Example 1:
        // doesn't make sense
        <p value="Imagine this as a really long paragraph." />

        // makes sense
        <p>
                Imagine this as a really long paragraph.
        </p>

Example 2:
        // makes sense
        <item id="S0023JC" />

        // doesn't make as much sense
        <item>S0023JC</item>

If you're really not sure what makes the most sense, try and think of an
example HTML/CFML tag that is similar in nature and follow what they do (not
that those are always correct.)

-Dan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211375
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to