O que tem de errado nesse codigo?
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="
http://ns.adobe.com/mxml/2009"
xmlns:s="library://
ns.adobe.com/flex/spark"
xmlns:mx="library://
ns.adobe.com/flex/mx" minWidth="955"
minHeight="600">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here
-->
</fx:Declarations>
<s:Panel x="150" y="58" width="463" height="358">
<s:Label x="43" y="80" text="Data de Nascimento:"/>
<s:TextInput id="data_nasc" x="170" y="70"/>
<s:Label x="306" y="80" text="Ex.: 01/01/2001"/>
<s:Label x="43" y="114" text="Data de Cadastro:"/>
<s:TextInput x="170" y="104"/>
<s:Label x="306" y="114" text="Ex.: 01/01/2001"/>
<s:Button x="203" y="137" label="ok"/>
</s:Panel>
<mx:DateValidator source="data_nasc" property="text" inputFormat="dd/
mm/yyyy" allowedFormatChars="/" />
</s:Application>
Mensagem de Erro: Description Resource Path Location Type
'DateValidator' declaration must be contained within the
<Declarations> tag, since it is not assignable to the default
property's element type 'mx.core.IVisualElement'. main.mxml /
ValidandoDatas/src line 18 Flex Problem