Puoi utilizzare DOMXPath()
Codice PHP:
$root = (new DOMXPath($xmlDoc))->document->childNodes