I have a little project on riaforge that would be perfect for this kind of thing:
http://betterxml.riaforge.org Basically, you'd do something along the lines of: <cfset xml = createobject('component', 'betterXmlEditor').init(xmlSource) /><!--- xml source can be url, string or file path ---> <cfset xml.updateElement('//PARTS/PART[MODEL="P3B-F"]/YEAR', '1973') /> It's been a while so I expect the syntax is a slight variation on that. HTH, Dominic 2008/12/19 N K <[email protected]>: > Hi All, > > I am trying to add as well as modify data in XML file through CF.So that the > changes could be saved in the XML file. > Example in the following XML file ,the <YEAR> has to be added. > > > <PARTS> > <TITLE>Computer Parts</TITLE> > <PART> > <ITEM>Motherboard</ITEM> > <MANUFACTURER>ASUS</MANUFACTURER> > <MODEL>P3B-F</MODEL> > <COST> 123.00</COST> > <YEAR> </YEAR> > </PART> > </PARTS> > > And should look like > > <PARTS> > <TITLE>Computer Parts</TITLE> > <PART> > <ITEM>Motherboard</ITEM> > <MANUFACTURER>ASUS</MANUFACTURER> > <MODEL>P3B-F</MODEL> > <COST> 123.00</COST> > <YEAR>1995</YEAR> > </PART> > </PARTS> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316956 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

