| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 9x Winner: 1x | |||||||||||||||||||
| Classes of Tom Schaefer | > | Input Validator | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Applications | Related links | ||||||||
| Groups | ||
| XML | XML parsing and generation | View top rated classes | |
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Validation | Validation algorithms | View top rated classes |
| Innovation Award | ||
![]() June 2012 Number 4 Prize: One downloadable copy of PhpED Professional |
XML Schema (XSD) is a standard for defining rules that XML element values should follow. This class can validate arrays of values, submitted eventually using Web forms, using rules defined using XML Schema. It can validate not only all basic types of values but also more complex element types defined as nested arrays. The initial set of validation rules can be generated from a sample array of valid values that is passed to the class. This way the class makes it easy to get started defining basic validation rules without requiring to learn too much about XML Schema. Manuel Lemos |
| User ratings | ||
| Not yet rated by the users |
| Applications that use this class | ||
| Link | Description |
|---|---|
| Show Case | show case: send json data and definition to visualize its output |
| Related links | ||
| Link | Description |
|---|---|
| Trang | Trang takes as input a schema (e.g. XML) and produces as output a schema (e.g. XSD). |
| File | Role | Description |
|---|---|---|
| Example | error: unexpected type | |
| Example | error: wrong type, expecting boolean, receiving integer | |
| Example | undefined key-value pair | |
| Class | class | |
| Example | interface error sample | |
| Example | json to xsd using trang |
| Download all files: nestedarrayvalidator.tar.gz nestedarrayvalidator.zip |