This class can validate of nested arrays using XML schema rules.
It can take an example of associative array with valid values and converts it internally to validation rules defined in XML Schema Definitions (XSD).
An actual array of data, which can eventually be the $_POST request values, can be validated with the rules determined from the sample data.
It can also generate a XML Schema Definition file that can be edited separately to add more complex validation rules. The edited XSD file or string can also be used as input to define the validation rules.
The class supports validating values of different types, such as: boolean, integer, float, string, date, time, timestamp, array, object.