Je dispose d'un fichier XMLétat dans la mise en œuvre XPath
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<events date="12/12/2010">
<event>
<title>JqueryEvent</title>
<description>
easily
</description>
</event>
</events>
<events date="14/12/2011">
<event>
<title>automatically onBlur</title>
<description>
when a date is selected. For an inline calendar, simply attach the datepicker to a div or span.
</description>
</event>
</events>
</xml>
Je me sers de ce XPath pour sélectionner les nœuds
$xml = simplexml_load_file($file);
$nodes = $xml->xpath('//xml/events');
Il sélectionnera tous les nodes.I veulent sélectionner les nœuds en fonction à la date.