Salve a tutti,
premetto che sono un neofita in merito,
dovrei leggere gli attributi di ogni "nominativo" presente in un file xml (in realtà si tratta del valore di ritorno di un web services) strutturato in questo modo:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ListaPersonaleResponse xmlns="http://www.pincopallino.it/">
<ListaPersonaleResult>
<![CDATA[<esito>
<nominativo user="pippo1" nome="Mario Rossi1" telefonofisso="01234567" mobile="01234567" via="Roma, 10" cap="00100" città="Roma" />
<nominativo user="pippo2" nome="Mario rossi2" telefonofisso="01234567" mobile="01234567" via="Roma, 10" cap="00100" città="Roma" />
<nominativo user="pippo3" nome="Mario rossi3" telefonofisso="01234567" mobile="01234567" via="Roma, 10" cap="00100" città="Roma" />
<nominativo user="pippo4" nome="Mario rossi4" telefonofisso="01234567" mobile="01234567" via="Roma, 10" cap="00100" città="Roma" />
</esito>]]>
</ListaPersonaleResult>
</ListaPersonaleResponse>
</soap:Body>
</soap:Envelope>

volevo sapere che cosa utilizzare, sto provando la classe DOMDocument ma non riesco a leggere nulla mi fermo a questo punto:

$xmlDoc = new DOMDocument();
$xmlDoc->load('esempio.xml');

$xp = new DOMXPath($doc);

$xpath = new DOMXPath($doc);
$xp->registerNamespace('soap', 'http://schemas.xmlsoap.org/soap/envelope/');

$query = '//soap:Body';

$entries = $xpath->query($query);

foreach ($entries as $entry)
{
$ListaPersonaleResponse = $entry->getElementsByTagName( "ListaPersonaleResponse" );
...........
...........


Ringrazio anticipatamente per le risposte.
David.