public function validate($xsd = null)
    {
        if (!$xsd) {
            $xsdPath = __DIR__ . '/../../../resources/xsd/';
            $xsd = $xsdPath . 'rampage/core/ModuleManifest.xsd';
        }

        try {
            $dom = new DOMDocument();
            $dom->loadXML($this->getXml()->asXML());

            $result = $dom->schemaValidate($xsd);
            unset($dom);
        } catch (\Exception $e) {
            return false;
        }

        return $result;
    }
public function validate($xsd = null)
    {
        if (!$xsd) {
            $xsdPath = __DIR__ . '/../../../resources/xsd/';
            $xsd = $xsdPath . 'rampage/core/ModuleManifest.xsd';
        }

        try {
            $dom = new DOMDocument();
            $dom->loadXML($this->getXml()->asXML());

            $result = $dom->schemaValidate($xsd);
            unset($dom);
        } catch (\Exception $e) {
            return false;
        }

        return $result;
    }
public function validate ( $ xsd = null ) { if ( ! $ xsd ) { $ xsdPath = __DIR__ . '/../../../resources/xsd/' ; $ xsd = $ xsdPath . 'rampage/core/ModuleManifest.xsd' ; } try { $ dom = new DOMDocument ( ) ; $ dom -> loadXML ( $ this -> getXml ( ) -> asXML ( ) ) ; $ result = $ dom -> schemaValidate ( $ xsd ) ; unset ( $ dom ) ; } catch ( \ Exception $ e ) { return false ; } return $ result ; }
Validate manifest xml

@return bool
Validate manifest xml