add xml node?

2007-09-11 Thread Paul Hastings
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

Re: add xml node?

2007-09-11 Thread Brian Kotek
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

Re: add xml node?

2007-09-11 Thread Paul Hastings
Brian Kotek wrote: cfset ArrayAppend(xml['a'].xmlChildren[1].xmlChildren, XmlElemNew(xml, 'd')) / well that was intuitive ;-) many thanks brian. ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins