public static function createFromXml(XmlElement $xml, ControllerInterface $controller): TrackInterface
    {
        return new static($xml->getTag("res")->nodeValue, $xml->getTag("title")->nodeValue);
    }
public static function createFromXml(XmlElement $xml, ControllerInterface $controller): TrackInterface
    {
        return new static($xml->getTag("res")->nodeValue, $xml->getTag("title")->nodeValue);
    }
public static function createFromXml ( XmlElement $ xml , ControllerInterface $ controller ) : TrackInterface { return new static ( $ xml -> getTag ( "res" ) -> nodeValue , $ xml -> getTag ( "title" ) -> nodeValue ) ; }
Create a stream from an xml element.

@param XmlElement $xml The xml element representing the track meta data
@param ControllerInterface $controller A controller instance to communicate with

@return self
Create a stream from an xml element .