This is a code for make a form validation in the server side and client side.
This code was created six years ago to function as the formValidation jquery plugin, however this validates works at the both clientside as in serverside.

Ministry of National Integration of Brazil
2009 to 2010

Manual with examples explaining how to create validation rules.

Validation class to validate fields through server rules (serverside)

Validation that allows validate fields through server rules (clientside)

Sample XML file

Example calling validation for generating the form validations based on the rules on the XML file on the clientside and serverside.