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;
		}
	}
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;
		}
	}
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 ; } }
Validate an HTMLBook file

@param string $path

@return bool
Validate an HTMLBook file