/** * * @return SimpleXmlElement */ protected function loadMountpointsFile() { try { if (!is_file($this->filePath)) { throw new EyeFileNotFoundException($this->filePath); } $xmlReader = new XmlStreamReader(new FileInputStream($this->filePath)); $xml = null; $xmlReader->read($xml); $xmlReader->close(); return $xml; } catch (Exception $e) { throw new EyeIOException('Unable to load mountpoints configuration at ' . $this->filePath . '.', 0, $e); } }