> > // returns an array of matching nodes: > matchingElements = xmlSearch(xmlDoc,'//[EMAIL PROTECTED]"#argID#"]'); > // array should have one entry for unique matching id: > matchingElements[1].xmlAttributes["live"] = true;
Oh me oh my. Somehow, I missed that this would actually work - days (many, many of them) wasted figuring out the right java objects to use because I didn't believe that the return value from XMLSearch referenced the original xml doc. Although, could you use the result of XMLSearch to delete all the elements from the source xml that match the given XPath expression? Dom On 24/12/2007, Sean Corfield <[EMAIL PROTECTED]> wrote: > > On Dec 23, 2007 7:22 AM, Dave Francis <[EMAIL PROTECTED]> wrote: > > structInsert(xmlDoc.document.facet//[EMAIL > > PROTECTED]"#argID#"].XmlAttributes, > > "live", "true") > > Only xmlSearch() understands XPath so try this (untested :) > > // returns an array of matching nodes: > matchingElements = xmlSearch(xmlDoc,'//[EMAIL PROTECTED]"#argID#"]'); > // array should have one entry for unique matching id: > matchingElements[1].xmlAttributes["live"] = true; > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:295407 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

