Re: how to edit a xml file
| From: | Steph Fox | Date: | Sat, 09 Sep 2006 04:52:18 +0000 |
| Subject: | Re: how to edit a xml file | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7236@lists.php.net to get a copy of this message | ||
Hi Suomaf,
I think I'm confused. It tells you how to do what I _think_ you're asking on the home page for SimpleXML in the PHP manual - so what am I missing?
http://www.php.net/simplexml
See: Example 7. Setting values
- Steph
----- Original Message ----- From: "suomaf" <suomaf@gmail.com>
To: <php-gtk-general@lists.php.net>
Sent: Saturday, September 09, 2006 3:17 AM
Subject: [PHP-GTK] how to edit a xml file
Hello all, I think this is a php question again, but i can't seem to find information on how to edit a xml after reading it in. <?xml version="1.0"?> <toDoList> <task> <id>1</id> <done>0</done> <toDo>try to finish this to do list</toDo> <priority>Normal</priority> <date>8-2-2006</date> </task> <task> <id>2</id> <done>0</done> <toDo>so this is a new take... wasssssuppp!!!!!!!!!!1~</toDo> <priority>ASAP</priority> <date>8-3-2006</date> </task> </toDoList> I would like to be able to read in task->id=1 and change done from 0 to 1 and then write back to the xml file... All the simplexml documentation i have been reading at the moment is teaching me how to read it and not write it. Kind regards, Suomaf -- View this message in context: http://www.nabble.com/how-to-edit-a-xml-file-tf2242296.html#a6219323 Sent from the Php - GTK - General forum at Nabble.com. -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com