public function readUntilNodeFound($nodeName)
    {
        do {
            $wasReadSuccessful = $this->read();
            $isNotPositionedOnStartingNode = !$this->isPositionedOnStartingNode($nodeName);
        } while ($wasReadSuccessful && $isNotPositionedOnStartingNode);

        return $wasReadSuccessful;
    }
public function readUntilNodeFound($nodeName)
    {
        do {
            $wasReadSuccessful = $this->read();
            $isNotPositionedOnStartingNode = !$this->isPositionedOnStartingNode($nodeName);
        } while ($wasReadSuccessful && $isNotPositionedOnStartingNode);

        return $wasReadSuccessful;
    }
public function readUntilNodeFound ( $ nodeName ) { do { $ wasReadSuccessful = $ this -> read ( ) ; $ isNotPositionedOnStartingNode = ! $ this -> isPositionedOnStartingNode ( $ nodeName ) ; } while ( $ wasReadSuccessful && $ isNotPositionedOnStartingNode ) ; return $ wasReadSuccessful ; }
Read until the element with the given name is found, or the end of the file.

@param string $nodeName Name of the node to find
@return bool TRUE on success or FALSE on failure
@throws \Box\Spout\Reader\Exception\XMLProcessingException If an error/warning occurred
Read until the element with the given name is found or the end of the file .