public function validate( string $path ) {

		$command = PB_XMLLINT_COMMAND . ' --noout --schema ' . escapeshellcmd( $this->getSchemaPath() ) . ' ' . escapeshellcmd( $path ) . ' 2>&1';

		// Execute command
		$this->errors = [];
		$output = [];
		$return_var = 0;
		exec( $command, $output, $return_var );

		if ( isset( $output[0] ) && str_ends_with( $output[0], ' validates' ) ) {
			return true;
		} else {
			$this->errors = $output;
			return false;
		}
	}