Sarah, >A rookie question no doubt:
Not really, as there isn't a straightforward way via straight CF to do this. >Using XmlElemNew(), I can't seem to do this without >overwriting all the child elements completely. > >I.E. How do you join this xml: > ><shoppingList> > <fruits> > <apples>5</apples> > <bananas>5</bananas> > </fruits> ></shoppingList> > >with this xml: > ><vegetables> > <carrots>5</carrots> ></vegetables> > >to get this xml: > ><shoppingList> > <fruits> > <apples>5</apples> > <bananas>5</bananas> > </fruits> > <vegetables> > <carrots>5</carrots> > </vegetables> ></shoppingList> > >Thanks for any help! Nathan Dintenfass wrote an xmlMerge() UDF a while ago which can do what you want: http://www.cflib.org/udf.cfm?ID=1026 I've always thought CF really needed an xmlAppend/xmlPrepend function. You could write UDFs to do this, but it always seemed like something that should just be in the language. Actually, I'd prefer a real XML DOM. -Dan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227505 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

