protected function getSimpleXmlObject()
    {
        $dom = new \DOMDocument;
        $dom->load($this->xmlfile);

        if ($this->validateSchema($dom)) {
            return simplexml_import_dom($dom, $this->simplexmlclass);
        }
    }