public function readUntilStopped()
    {
        while ($this->xmlReader->read()) {
            $nodeType = $this->xmlReader->nodeType;
            $nodeNamePossiblyWithPrefix = $this->xmlReader->name;
            $nodeNameWithoutPrefix = $this->xmlReader->localName;

            $callbackData = $this->getRegisteredCallbackData($nodeNamePossiblyWithPrefix, $nodeNameWithoutPrefix, $nodeType);

            if ($callbackData !== null) {
                $callbackResponse = $this->invokeCallback($callbackData, [$this->xmlReader]);

                if ($callbackResponse === self::PROCESSING_STOP) {
                    // stop reading
                    break;
                }
            }
        }
    }
public function readUntilStopped()
    {
        while ($this->xmlReader->read()) {
            $nodeType = $this->xmlReader->nodeType;
            $nodeNamePossiblyWithPrefix = $this->xmlReader->name;
            $nodeNameWithoutPrefix = $this->xmlReader->localName;

            $callbackData = $this->getRegisteredCallbackData($nodeNamePossiblyWithPrefix, $nodeNameWithoutPrefix, $nodeType);

            if ($callbackData !== null) {
                $callbackResponse = $this->invokeCallback($callbackData, [$this->xmlReader]);

                if ($callbackResponse === self::PROCESSING_STOP) {
                    // stop reading
                    break;
                }
            }
        }
    }
public function readUntilStopped ( ) { while ( $ this -> xmlReader -> read ( ) ) { $ nodeType = $ this -> xmlReader -> nodeType ; $ nodeNamePossiblyWithPrefix = $ this -> xmlReader -> name ; $ nodeNameWithoutPrefix = $ this -> xmlReader -> localName ; $ callbackData = $ this -> getRegisteredCallbackData ( $ nodeNamePossiblyWithPrefix , $ nodeNameWithoutPrefix , $ nodeType ) ; if ( $ callbackData !== null ) { $ callbackResponse = $ this -> invokeCallback ( $ callbackData , [ $ this -> xmlReader ] ) ; if ( $ callbackResponse === self :: PROCESSING_STOP ) { // stop reading break ; } } } }
Resumes the reading of the XML file where it was left off.
Stops whenever a callback indicates that reading should stop or at the end of the file.

@return void
@throws \Box\Spout\Reader\Exception\XMLProcessingException
Resumes the reading of the XML file where it was left off . Stops whenever a callback indicates that reading should stop or at the end of the file .