Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,475 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,302 people online right now. Registration is fast and FREE... Join Now!




Need help updating an XML file

 
Reply to this topicStart new topic

Need help updating an XML file

Ennio
post 29 May, 2008 - 03:49 PM
Post #1


New D.I.C Head

*
Joined: 29 May, 2008
Posts: 1

I need to update an XML file in the server when the user submit the form, and I would like some help on how to do this since I never worked with CF and XML file before.

The XML file is the following.

CODE

<galleries autoplay="true" autoplayLoop="true" autoplayDelay="6000" audio="PetGal/upcountry.mp3" audioLabel="slide show music" >
         <img src="Yale.jpg" title="Louis is fashionable in his Up Country Yale collar!" caption="Yale University, New Haven, CT" target="_self" />
</galleries>


So everytime the user submit the form I need to add another <img> tag to the XML file so it can update the photo gallery. Any idea on how can I do this.
User is offlineProfile CardPM

Go to the top of the page

ryanaghdam
post 1 Jul, 2008 - 06:48 AM
Post #2


New D.I.C Head

*
Joined: 14 Jun, 2008
Posts: 8


My Contributions


QUOTE(Ennio @ 29 May, 2008 - 04:49 PM) *

I need to update an XML file in the server when the user submit the form, and I would like some help on how to do this since I never worked with CF and XML file before.

The XML file is the following.

CODE

<galleries autoplay="true" autoplayLoop="true" autoplayDelay="6000" audio="PetGal/upcountry.mp3" audioLabel="slide show music" >
         <img src="Yale.jpg" title="Louis is fashionable in his Up Country Yale collar!" caption="Yale University, New Haven, CT" target="_self" />
</galleries>


So everytime the user submit the form I need to add another <img> tag to the XML file so it can update the photo gallery. Any idea on how can I do this.



It is likely there is something built into CF, but you should just store the results in a database and create the XML on the fly. Should be less of a headache, and will give you more flexible data.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 02:40PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month