Show validation.xml syntax highlighted
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<global>
<constant>
<constant-name>postcode</constant-name>
<constant-value>^[0-9]{4}[A-Za-z]{2}$</constant-value>
</constant>
<constant>
<constant-name>ten_digit_number</constant-name>
<constant-value>^[0-9]{1,10}$</constant-value>
</constant>
<constant>
<constant-name>date_format</constant-name>
<constant-value>dd/MM/yyyy</constant-value>
</constant>
<constant>
<constant-name>timestamp_format</constant-name>
<constant-value>dd/MM/yyyy HH:mm:ss</constant-value>
</constant>
</global>
</form-validation>
See more files for this project here