alistz
10-22-2008, 12:35 PM
Hi. I'm building a website using PHP, and I've incorporated a couple of small XML files that I read in to load my pages.
For example, I have a screen that shows a list of cities for the state you live in. The list of states and cities is read in from an XML file.
I'm trying to write some simple screens I could use, so I could hand off the task of maintaining the XML file to an admin. The screen I need would give the administrator an interface to 1. Add a City, 2. delete a City, modify a City.
I am looking for a tutorial or book that would outline or give examples of doing this. I have used simpleXML to read the file, etc. But examples of deleting nodes/adding nodes/modifying don't seem to be out there.
What is the best way to make changes to a server side XML file?
Any ideas are appreciated.
For example, I have a screen that shows a list of cities for the state you live in. The list of states and cities is read in from an XML file.
I'm trying to write some simple screens I could use, so I could hand off the task of maintaining the XML file to an admin. The screen I need would give the administrator an interface to 1. Add a City, 2. delete a City, modify a City.
I am looking for a tutorial or book that would outline or give examples of doing this. I have used simpleXML to read the file, etc. But examples of deleting nodes/adding nodes/modifying don't seem to be out there.
What is the best way to make changes to a server side XML file?
Any ideas are appreciated.