Hi, Thanks so for this, interesting, I have never used wddx. basically what I am trying to do is a have a photo viewer(flash) that uses a xml file to load the images. I am trying to use ColdFusion o have a form to update the file.
This might work, as I don't think that the app cares about how the xml file is structured, it just looks for a particular xml file. I will be playing with this tonight. Thanks so much for your help, John On Jun 3, 2008, at 3:26 AM, Bilal Soylu wrote: > John, > if you are impartial about the type of xml file and only want to > maintain data I would suggest the use of built in wddx support. You > will be able to read and write it and expand it using the CF objects. > > For example to create some data: > > <cfset myData = StructNew()> <!--- this is the root for your data > container ---> > <cfset myData.FirstName = "John"> > <cfset myData.LastName = "Doe"> > > To Save this you need to convert to WDDX then save to a file of > your choosing my example saves in same directory using the > myXMLFile.xml name: > > <cfwddx action="CFML2WDDX" input="#myData#" output="myXML"> > <cffile action="WRITE" file="#GetDirectoryFromPath > (GetCurrentTemplatePath())#myXMLFile.xml" output="#myXML#" > addnewline="No" fixnewline="No"> > > > To Read the file and get its content back and add a phone number: > <cffile action="READ" file="#GetDirectoryFromPath > (GetCurrentTemplatePath())#myXMLFile.xml" variable="myXML"> > <cfwddx action="WDDX2CFML" input="#myXML#" output="myData"> > > <cfset myData.Phone="8873838"> > > and so on. > > Cheers, > Bilal > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3701 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
