public function getReaderFor($feedContent)
    {
        @$content = new SimpleXMLElement($feedContent);

        foreach ($this->readers as $reader) {
            if ($reader->supports($content->getName())) {
                $reader->setFeed($content);

                return $reader;
            }
        }

        throw new UnknownFormatException(
            "Parser has no support for '{$content->getName()}' feed format"
        );
    }
public function getReaderFor($feedContent)
    {
        @$content = new SimpleXMLElement($feedContent);

        foreach ($this->readers as $reader) {
            if ($reader->supports($content->getName())) {
                $reader->setFeed($content);

                return $reader;
            }
        }

        throw new UnknownFormatException(
            "Parser has no support for '{$content->getName()}' feed format"
        );
    }
public function getReaderFor ( $ feedContent ) { @ $ content = new SimpleXMLElement ( $ feedContent ) ; foreach ( $ this -> readers as $ reader ) { if ( $ reader -> supports ( $ content -> getName ( ) ) ) { $ reader -> setFeed ( $ content ) ; return $ reader ; } } throw new UnknownFormatException ( "Parser has no support for '{$content->getName()}' feed format" ) ; }
Returns a reader object for the given feed.

@param string $feedContent

@return FeedReaderInterface

@throws UnknownFormatException if the feed format is not supported by any reader
Returns a reader object for the given feed .