public static function getDOIValue($xml)
    {
        $doiXML = new \DOMDocument();
        $doiXML->loadXML($xml);

        // get the current identifier
        $currentIdentifier = $doiXML->getElementsByTagName('identifier');

        return $currentIdentifier->item(0)->nodeValue;
    }
public static function getDOIValue($xml)
    {
        $doiXML = new \DOMDocument();
        $doiXML->loadXML($xml);

        // get the current identifier
        $currentIdentifier = $doiXML->getElementsByTagName('identifier');

        return $currentIdentifier->item(0)->nodeValue;
    }
public static function getDOIValue ( $ xml ) { $ doiXML = new \ DOMDocument ( ) ; $ doiXML -> loadXML ( $ xml ) ; // get the current identifier $ currentIdentifier = $ doiXML -> getElementsByTagName ( 'identifier' ) ; return $ currentIdentifier -> item ( 0 ) -> nodeValue ; }
Gets the DOI Identifier value in the provided XML

@param $xml
@return string
Gets the DOI Identifier value in the provided XML