No, the same null pointer exception occurs (which you'd expect, since the search is being done on the same object and it's just the result that's duplicated).
On Fri, Aug 8, 2008 at 6:37 PM, James Holmes <[EMAIL PROTECTED]> wrote: > I'll rerun the tests and let you know. > > On Fri, Aug 8, 2008 at 5:29 PM, Jochem van Dieten > wrote: >> James Holmes wrote: >>> Right, I can now screw up our XML searches at will. The bad news is >>> the same thing happens in CF8.01 as well as CF 7.02 (I just tested >>> both). >> >>> <cfset elementArray = XMLSearch(APPLICATION.myXML, >>> "/pagesettings/top_navigation[3]")> >>> <cfset topNavURL = elementArray[1].url.XMLText> >> >> Does the problem go away if you use: >> <cfset elementArray = Duplicate(XMLSearch(APPLICATION.myXML, >> "/pagesettings/top_navigation[3]"))> >> >> Jochem -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310500 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

