Editting XML Files with PHP
Posted 12 September 2006 - 12:44 AM
I just recently learned about SimpleXML in PHP5, and I was wondering if someone could explain to me how I could use PHP to open a XML file, and select a specific tag name and replace a specific attribute, or a array of attributes.
I would be using xmlHttpRequest to pass data to the PHP file that would then open and edit the XML file.
Thanks for your help in advance
Posted 12 September 2006 - 06:55 AM
Donations gratefully received
|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
Posted 12 September 2006 - 12:53 PM
Now, do you know if there is a way to make it so it will only create the new file once, and later just edit the created file?
I would like to have one standard XML file that is then editted by user select and saved to a different XML file according to their userid
standard.xml --User Changes default settings ---new attributes saved as userid.xml ----User changes more settings -----edit attributes in userid.xml
Nevermind, unless im wrong it looks like you can specify a file to write to with asXML()
Thanks for your help.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users