Please note, this is a STATIC archive of website from 08 Oct 2018, does not collect or store any user information, there is no "phishing" involved.

On-line PAD Validator

PAD Validator is a part of the PAD SDK package. It’s a PHP class that you can use in the scripts on your web site to validate PAD files.

Download the On-Line PAD Validator Source Code

The ZIP archive contains a required PHP library (the “includes” folder) and a sample validator script (validate.php).

With the PAD 4.0 specification update validation became easier for the download site operators. It is not only checks the XML structure validity but also verifies the data itself and offers a strong PAD-spam protection mechanism. Starting from the version 4.0 of the PAD specification, all PAD files have to be hosted in the official PAD repository. Each PAD in the Official PAD Repository gets validated and is manually verified by live operators. Basically, in order to validate a PAD file now, you just need to make 2 simple checks:

  1. Make sure that the actual URL of a PAD files matches the URL specified in the Application_XML_File_URL field.
  2. Make sure that PAD comes from an authorized source (the Official PAD Repository)

Below is a basic PAD validation code. Please use the validate.php code for real world applications.

//First, we create a PAD object and pass the URL of a PAD file that we need to validate
$PAD = new PADFile($URL);

//Loading PAD from URL

//Next, we create a Validator object and pass the URL of the current PAD specification
$PADValidator = new PADValidator("");

//Finally, we validate the PAD file against the current PAD specification
$nErrors = $PADValidator->Validate($PAD);
if ( $nErrors == 0 ) echo "The PAD file is valid"

Don’t hesitate to contact us should you have any questions regarding the On-Line PAD Validator code usage!

PAD®, PADGen, and PADKit are trademarks of the Association of Shareware Professionals in the United States and/or other countries.  Please refer to “PAD Rights, Requirements, and Usage Guidelines” on the ASP PAD website.  All contents are Copyright ©2013 by Parts Association of Software Professionals All Rights Reserved.


Social Bookmarks