public function rewind()
	{
		// open file with reader
		// force UTF-8, validate XML, & substitute entities while reading
		$this->reader->open($this->file, 'UTF-8', XMLReader::VALIDATE | XMLReader::SUBST_ENTITIES);

		// fast forward to first record
		while ($this->reader->read() && $this->reader->name !== $this->key)
		{
			// Do nothing...
		}
	}
public function rewind()
	{
		// open file with reader
		// force UTF-8, validate XML, & substitute entities while reading
		$this->reader->open($this->file, 'UTF-8', XMLReader::VALIDATE | XMLReader::SUBST_ENTITIES);

		// fast forward to first record
		while ($this->reader->read() && $this->reader->name !== $this->key)
		{
			// Do nothing...
		}
	}
public function rewind ( ) { // open file with reader // force UTF-8, validate XML, & substitute entities while reading $ this -> reader -> open ( $ this -> file , 'UTF-8' , XMLReader :: VALIDATE | XMLReader :: SUBST_ENTITIES ) ; // fast forward to first record while ( $ this -> reader -> read ( ) && $ this -> reader -> name !== $ this -> key ) { // Do nothing... } }
Move to the first node that matches our key

@return  void
Move to the first node that matches our key