public function validateXML($xml)
    {
        $xmlValidator = new XMLValidator();
        $result = $xmlValidator->validateSchemaVersion($xml);
        if ($result === false) {
            $this->setResponse("verbosemessage", $xmlValidator->getValidationMessage());
            return false;
        }
        return true;
    }
public function validateXML($xml)
    {
        $xmlValidator = new XMLValidator();
        $result = $xmlValidator->validateSchemaVersion($xml);
        if ($result === false) {
            $this->setResponse("verbosemessage", $xmlValidator->getValidationMessage());
            return false;
        }
        return true;
    }
public function validateXML ( $ xml ) { $ xmlValidator = new XMLValidator ( ) ; $ result = $ xmlValidator -> validateSchemaVersion ( $ xml ) ; if ( $ result === false ) { $ this -> setResponse ( "verbosemessage" , $ xmlValidator -> getValidationMessage ( ) ) ; return false ; } return true ; }
Returns true if xml is datacite valid else false and sets error

@param $xml
@return bool
Returns true if xml is datacite valid else false and sets error