> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 14, 2005 10:36 AM
> To: CF-Talk
> Subject: Re: XML - force empty tag <tag></tag>
> 
> Y'know, when I was writing the code that generates the XML document, a
> few people asked me why I didn't just use <cfsavecontent> (since this
> is new area for me, it took me a while to get things working correctly
> with the CF XML functions).
> 
> I was far enough into it that I just wanted to finish what I started
> the way I started...and when I was done, the consensus was that the CF
> XML functions did look "sexier" than a straightforward <cfsavecontent>
> would have...  :)
> 
> ....but sexiness aside...is there any good reason to struggle with the
> CF XML functions when a <cfsavecontent> will do the trick that much
> easier?

There may be performance differences... I would guess that CFSAVEDCONTENT is
quicker than multiple function calls.

CFSAVEDCONTENT may also be more error prone (since you're essentially
hand-coding the XML)... but then again the native XML functions are
cumbersome and numerous so that may lead to more debugging.

All told it seems very similar to the long and heated debate in the
JavaScript community over whether you should just produce XML and use things
like "innerHTML" to fetch it or use the DOM model to produce/build it (and
the DOM JavaScript model is much, MUCH more complex than the CF model).

In the end I think, in both cases, it's pretty much free choice.  Although
the proponents for "real" DOM manipulation seem a bit more rabid to me.  But
for all their passion they aren't really any more convincing.  ;^)

Jim Davis




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218222
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