Source

xwork / src / test / com / opensymphony / xwork2 / TestChildBean-validation.xml

Full commit
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> 
<validators>
    <field name="name">
        <field-validator type="requiredstring" short-circuit="true">
            <message>You must enter a name.</message>
        </field-validator>
		<field-validator type="fieldexpression">
			<param name="expression">name == 'test'</param>
			<message>Name is invalid</message>
		</field-validator> 
    </field>
    <field name="birth">
	    <field-validator type="date">
	        <param name="min">01/01/1970</param>
	        <message>You must have been born after 1970.</message>
	    </field-validator>
    </field>
</validators>