1 Replies - 3565 Views - Last Post: 01 July 2008 - 07:48 AM Rate Topic: -----

#1 Ennio   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 26
  • Joined: 29-May 08

Need help updating an XML file

Post icon  Posted 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.

<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.

Is This A Good Question/Topic? 0
  • +

Replies To: Need help updating an XML file

#2 ryanaghdam   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 14-June 08

Re: Need help updating an XML file

Posted 01 July 2008 - 07:48 AM

View PostEnnio, on 29 May, 2008 - 04:49 PM, said:

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.

<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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1