On Thu, 2006-08-31 at 14:38 +0200, Javier Ruiz wrote: > So I want to do... > > $xmlDatabase = new SimpleXMLElement($myXML); > foreach ($xmlDatabase as $oneTable) > { > if ($oneTable['name'] == 'two') > { > /// ---- HERE I WANT TO DELETE THE $oneTable NODE > unset($oneTable); // <-- and this doesn't work... > } > } I tried to do the same a while back and could not figure it out. I think that SimpleXML is just that - simple. You should rather try using DOMXML functions, or as I did, roll an XML parser and do it like that. --Paul
All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php