Re: how to edit a xml file

From: Date: Sat, 09 Sep 2006 05:22:55 +0000
Subject: Re: how to edit a xml file
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7239@lists.php.net to get a copy of this message
<?php $xml = simplexml_load_file('address.xml'); $xml->Response->name = 'new name!'; file_put_contents('address.xml', $xml->asXML()); ?> ----- Original Message ----- From: "suomaf" <suomaf@gmail.com> To: <php-gtk-general@lists.php.net> Sent: Saturday, September 09, 2006 7:03 AM Subject: Re: [PHP-GTK] how to edit a xml file
Hello Steph, I apologise for the confusion, what i would like to do is read in the xml file, edit a node, then write back to the file. Kind regards, Suomaf -- View this message in context: http://www.nabble.com/how-to-edit-a-xml-file-tf2242296.html#a6220564 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


« previous php.gtk.general (#7239) next »