I have a few questions about using xml and CF.
My code works fine, but I would like to know:
how can I update the data with a form. For example I want to add a new student, 
so I put a form with the same names as the xml data,which I am fine with, but I 
am lost on how to write the data to add to the already xml file?

Thanks so much,
Johnny

<!--- my code--->
<cfxml variable="students">
<school>
        <name>John Barrett</name>
        <school>University of Hawaii</school>
        <department>New Media</department>
</school>
</cfxml>
<cffile action="write" 
file="#getDirectoryFromPath(getTemplatePath())#students.xml" 
output="#students#">

<cfdump var="#students#">


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4803
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to