Load($file); $Schema = $dom->getElementsByTagName('SupportedSchemas'); foreach ($Schema as $Schema) { echo $Schema->getAttribute('namespace'); } ?>