public function parse($callbacks, LocatorInterface $locator)
    {
        $data = null;

        while ($this->read()) {
            if ($this->nodeType == \XMLReader::ELEMENT) {
                $child = $this->parseElement($this->name, $callbacks, $locator);
                $data  = $child;
                break;
            }
        }

        return $data;
    }
public function parse($callbacks, LocatorInterface $locator)
    {
        $data = null;

        while ($this->read()) {
            if ($this->nodeType == \XMLReader::ELEMENT) {
                $child = $this->parseElement($this->name, $callbacks, $locator);
                $data  = $child;
                break;
            }
        }

        return $data;
    }
public function parse ( $ callbacks , LocatorInterface $ locator ) { $ data = null ; while ( $ this -> read ( ) ) { if ( $ this -> nodeType == \ XMLReader :: ELEMENT ) { $ child = $ this -> parseElement ( $ this -> name , $ callbacks , $ locator ) ; $ data = $ child ; break ; } } return $ data ; }
Parse the entity XML.

@param   Callable[]       $callbacks Hooks for pre- and postprocessing of elements
@param   LocatorInterface $locator   The XML description file locator

@return  Element
Parse the entity XML .