Using DOMDocument class you can make PHP read the XML and then look for the tag elements in it
http://php.net/DOMDocument
Example
$document = new DOMDocument();
$document->loadXML($xml);
$tags = $document->getElementsByTagName("www");
...
1
solved Extract Tag Attribute Content From XML [duplicate]