> Likewise! Another thing that I have just remembered is that XMLSearch
> is not particularly brilliant on ColdFusion 6.1 & 7 (it is hopefully
> much better on BlueDragon). If you dump a search result that returns
> xml attributes, i.e. <cfdump var="#XMLSearch(myXML,'//@id')#"> you
> will see an array of items of "Unknown type" with which you can do
> nothing! So now I remember why I wrote my component, not a waste of
> time at all ;)
I don't end up using xslSearch very much myself... I do have a
recollection of performing a similar search for attributes, hoping to
get an array of strings that I could use in an ArrayToList()... with no
such luck. I know the nodes returned from that in CF8 are still nodes
rather than strings, so you still can't use it like an array of strings,
which would be really nice, given that there's not a whole lot else
you're going to do other than string-comparisons if you're only getting
attributes back... Iirc they were "workable" even with CF7, just not as
practical as they could have been... leading to more frequently
searching for //[EMAIL PROTECTED] to get the tags and loop over those instead of
//@id to get the attributes.
But then the oddities of working with the other xml functions in CF are
part of why I lean in the direction of doing things with XSLT. Version 1
of XSLT still seemed immature, for example, no native lcase() or ucase()
and the only alternative translate() was pretty cryptic. But even still
once I got past the initial learning curve it seems more straightforward
/ less persnicketty.
--
s. isaac dealey ^ new epoch
isn't it time for a change?
ph: 503.236.3691
http://onTap.riaforge.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295461
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4