Re: XML & its elements

From: Date: Tue, 11 Apr 2006 22:13:11 +0000
Subject: Re: XML & its elements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-233802@lists.php.net to get a copy of this message
On Tue, April 11, 2006 3:25 am, Mohsen Pahlevanzadeh wrote: > I need to retrive content of my XML element.my element is translation. > <translation>MY _CONTENT</translation> > Of course i wanna use PHP4 instead 5. > Please help me..... > Yours,Mohsen There are 3 or 4 different XML parsing engines available for PHP 4. Pick one. If all else fails: $xml = "<translation>MY _CONTENT</translation>"; preg_match("/<translation>([^<]*)<\\/translation>/", $xml, $content); echo $content[1]; -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#233802) next »