comparison _test/Resources/types.xml @ 103:c289ed9662ca

Schema beta 2 More strict validation, support for inflating a simple nodes and properties
author wizard
date Fri, 07 May 2010 18:17:40 +0400
parents cf3b6ef2be22
children d1676be8afcc
comparison
equal deleted inserted replaced
102:cf3b6ef2be22 103:c289ed9662ca
1 <schema> 1 <schema>
2 <SimpleType type="email" nativeType="SCALAR"> 2 <SimpleType type="email">
3 <RegExp message="Неверный формат %Node.name_no%">^\w+(\.\w+)*@$\w+(\.\w+)+</RegExp> 3 <RegExp message="Неверный формат %Node.name_no%">^\w+(\.\w+)*@$\w+(\.\w+)+</RegExp>
4 <Property name='locale'/>
5 </SimpleType> 4 </SimpleType>
6 <SimpleType type="scalar" nativeType="SCALAR"/> 5 <SimpleType type="scalar"/>
7 <SimpleType type="date" nativeType="DateTime"> 6 <SimpleType type="date" inflate="DateTime">
8 <Property name="timezone" optional="1"/> 7 <Property name="timezone" optional="1"/>
9 <Property name="locale" optional="1"/> 8 <Property name="locale" optional="1"/>
10 </SimpleType> 9 </SimpleType>
11 </schema> 10 </schema>