Yeh, 'update' would be the one. There should be a write() method that will write the xml to the path you supply too, so:
<cfset xml = createobject('component', 'betterXmlEditor').init(xmlSource) /> <cfset xml.update('//PARTS/PART[MODEL="P3B-F"]/YEAR', '1973') /> <cfset xml.write(filepath) /> Referencing elements is done using XPath. If you're not familiar, w3schools has a good tutorial - and/or you can post the xml and I'll give you some pointers. http://www.w3schools.com/Xpath/ Dominic 2008/12/19 N K <neetukais...@gmail.com>: > Thanks You. > > Coudn't fine xml.updateElement.I guess it would be just Update i.e.xml.update. > > Is CFFILE required to write to the file.If yes how would we reference the > specific element. > > > >>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 >>> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:316959 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4