I have this code:
$dom = new DOMDocument(); $dom->load(\'file.xml\'); $names = $dom->getElementsByTagName(\'name\');
N
Use iterator_to_array() to convert a DomNodeList to an Array
$document = new DomDocument(); $document->load('test.xrds'); $nodeList = $document->getElementsByTagName('Type'); $array = iterator_to_array($nodeList);