<cfset ArrayAppend(xml['a'].xmlChildren[1].xmlChildren, XmlElemNew(xml, 'd')) />
On 9/11/07, Paul Hastings <[EMAIL PROTECTED]> wrote: > > say i have an xml doc > <a> > <b> > <c /> > </b> > </a> > > how would i add a node "d" to node "b", so i'd end up with something like > this? > > <a> > <b> > <c /> > <d /> > </b> > </a> > > > i've tried structInsert & xmlElemNew. no workee. i seem to have mushed up > the > part of my brain that deals w/xml, it's always a mystery to me ;-) > > thanks. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288154 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4