errors = $errors; parent::__construct( "Errors occured while parsing the XML." ); } /** * Return array with XML errors * * @return array */ public function getXmlErrors() { return $this->errors; } } ?>