I would like to get methods from REST XML file via PHP.I have local REST file, which is in this format:\[code\]SimpleXMLElement Object( [doc] => SimpleXMLElement Object ( ) [resources] => SimpleXMLElement Object ( [@attributes] => Array ( [base] => https://**url** ) [resource] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [path] => xml/{accesskey}/project ) [param] => SimpleXMLElement Object ( [@attributes] => Array ( [name] => accesskey [style] => template [type] => xs:string ) ) [method] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => getAllProjects [name] => GET ) [response] => SimpleXMLElement Object ( [representation] => SimpleXMLElement Object ( [@attributes] => Array ( [mediaType] => application/xml; charset=utf-8 ) ) ) )... and so on\[/code\]I have the following code, but it returns just the first method name:\[code\]$file="application.wadl";$xml = simplexml_load_file($file);foreach($xml->resources[0]->resource->method->attributes() as $a => $b) { echo $b,"\n";}\[/code\]I would like to extract all of them, not just the first one. How to do that?