<buddy id="1">

$myatrributesarray = array();
$listofmybuddies = $xml->evaluate('/buddy_list/buddy');

foreach ( $listofmybuddies as $buddy )
  $myatrributesarray = $xml->get_attributes($buddy);
  $id = $myatrributesarray['id']

  $firstname = $xml->get_attributes($buddy ."/firstname[1]");
  $lastname  = $xml->get_content($buddy ."/lastname[1]");
  $isniceguy  = $xml->get_content($buddy ."/isniceguy[1]");

En réponse à [EMAIL PROTECTED]:

> thanks,
> but I know how to use XPath functions. I only don't know how to get
> the
> functions of xmlphp to work. For example the get_content functions
> returns
> nothing. The evaluate function works.
This message has been sent through the <phpXML/> user discussion list. To unsubscribe, 
please visit https:[EMAIL PROTECTED]/

Phpxmldb-phpxml-arc mailing list

Reply via email to