how to edit a xml file
| From: | suomaf | Date: | Sat, 09 Sep 2006 01:17:31 +0000 |
| Subject: | how to edit a xml file | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7232@lists.php.net to get a copy of this message | ||
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.