Ciao a tutti,

ho un problema nella validazione di un xml che a me pare corretto, secondo il seguente schema:

codice:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
targetNamespace="http://www.example.org/PoliciesList" 
xmlns:tns="http://www.example.org/PoliciesList" 
elementFormDefault="qualified">


<xs:element name="Policy" >
       <xs:complexType>
       <xs:all>         
         <xs:element name="LastName"  > 
         <xs:annotation>
        	<xs:documentation>The lastname of insured person.</xs:documentation>
          </xs:annotation>
           <xs:simpleType>
              <xs:restriction base="xs:string">
               <xs:minLength value="0"/>
               <xs:maxLength value="35"/>               
              </xs:restriction>            
           </xs:simpleType>    
         </xs:element>
         <xs:element name="FirstName"  >
          <xs:annotation>
        	<xs:documentation>The firstname of insured person.</xs:documentation>
          </xs:annotation>
           <xs:simpleType>
              <xs:restriction base="xs:string">
               <xs:minLength value="0"/>
               <xs:maxLength value="35"/>               
              </xs:restriction>            
           </xs:simpleType>    
         </xs:element> 
         <xs:element name="FiscalCode"  >
         <xs:annotation>
        	<xs:documentation>Fiscal code of insured person.</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
             <xs:maxLength value="16"/>
            </xs:restriction>
           </xs:simpleType> 
         </xs:element> 
         <xs:element name="ProductCode"  nillable="false"> 
          <xs:annotation>
        	<xs:documentation>Product Code for current policy.</xs:documentation>
          </xs:annotation>
           <xs:simpleType> 
               <xs:restriction base="xs:string" >
                   <xs:maxLength value="10"/>                
               </xs:restriction>
          </xs:simpleType>
         </xs:element>
         <xs:element name="PolicyNumber"  nillable="false" > 
          <xs:annotation>
        	<xs:documentation>The policy number.</xs:documentation>
          </xs:annotation>
           <xs:simpleType> 
               <xs:restriction base="xs:string" >
                   <xs:maxLength value="50"/>                
               </xs:restriction>
          </xs:simpleType>
         </xs:element>
         <xs:element name="EffectDate" type="xs:dateTime" nillable="false">
         <xs:annotation>
        	<xs:documentation>Date of effect of the policy.</xs:documentation>
          </xs:annotation>
         </xs:element> 
         <xs:element name="EmissionDate" type="xs:dateTime" >
         <xs:annotation>
        	<xs:documentation>Emission date of the policy.</xs:documentation>
          </xs:annotation>
         </xs:element>    
         </xs:all>    
      </xs:complexType>
</xs:element>

</xs:schema>


file xml > prelevato da una risposta soap di WCF test client

codice:
<?xml version="1.0" encoding="utf-8"?>
 <Policy>
          <EffectDate>2011-07-08T00:00:00</EffectDate>
          <EmissionDate>2011-07-08T00:00:00</EmissionDate>
          <FirstName>xxxxxx</FirstName>
          <FiscalCode>CTTVLL82E18F205R</FiscalCode>
          <LastName>yyyyy</LastName>
          <PolicyNumber>0020021825604</PolicyNumber>
          <ProductCode>AB3</ProductCode>
 </Policy>
Il validatore mi dice che non trova l'elemento policy...dove sbaglio?
Entrambi i file sono well-formed e validi a se stanti..per cui non riesco proprio a capire dove sia il problema...


Grazie


Mike "The Ram"