Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form to XML in PHP

Status
Not open for further replies.

kellan4459

IS-IT--Management
Jul 3, 2003
84
US
I am trying to create a web application that will use forms to add to and edit an xml file. The XML back end will be used as a database basically. I have created classes to parse the xml into an array of entry objects. I have a function that I can call to display the object. I'm new to xml so I am struggling on adding to the xml or editing the xml. Any insight as to how I can modify a section of an xml file and add to the xml file without reading in the file, modifying, and then rewriting the file? I want to minimize the window of multiple editing causing data loss.
 
LOL ... soon as I figure out how to make simplexml do this ... I'll let you know.

Depending on the version of PHP you are using, you can try using dom xml ...
Greg

Greg

"for me, the action is the juice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top