public function parse() { $this->dom->loadXML(file_get_contents($this->file->getRealPath())); return $this; }