There are problems with the XML that you posted. In the XML, Company,
minLength facet of 1. So this will not validate.
me for all values of maxLength (yes I tried 64 as well). What error or
<ray@cape.com> wrote in message
news:1112050453.857355.16010@f14g2000cwb.googlegroups.com...
> the xml file:
>
>
> <?xml version="1.0" ?>
> - <data xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="LeadXSD.xsd">
> - <lead>
> <Company />
> <Address1>sssssssssss</Address1>
> <Address2 />
> <City />
> <State />
> <Postal_Code_Id>B-9200</Postal_Code_Id>
> <Country>Belgium</Country>
> <Country_Id />
> <First_Name />
> <Last_Name />
> <Email />
> <Title>Application Manager</Title>
> <Phone_Country_Code>32</Phone_Country_Code>
> <Phone_Area_Code />
> <Phone>3 8869801</Phone>
> <Ext />
> <Fax_Country_Code />
> <Fax_Area_Code />
> <Fax />
> <Rep>VANDEP</Rep>
> <Salesteam />
> <Territory_Id />
> <Lead_Status>To Be Qualified</Lead_Status>
> <Priority>3 - Medium</Priority>
> <AddAuth />
> <Account_Id>1</Account_Id>
> <Account_Contact_Id />
> <Acct_Location_Id />
> <Num_Of_Employees />
> <Department />
> <Salutation>Mr</Salutation>
> <Comments />
> </lead>
> </data>
>
> the xsd file:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xs:schema xmlns:xs="
http://www.w3.org/2001/XMLSchema" > elementFormDefault="qualified">
> <xs:simpleType name="CompanyString">
> <xs:annotation>
> <xs:documentation>Company string</xs:documentation>
> </xs:annotation>
> <xs:restriction base="xs:string">
> <xs:minLength value="1" />
> <xs:maxLength value="5" />
> </xs:restriction>
> </xs:simpleType>
> <xs:element name="data">
> <xs:complexType>
> <xs:choice maxOccurs="unbounded">
> <xs:element name="lead">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="Company" minOccurs="0"
> type="CompanyString"></xs:element>
> <xs:element name="Address1" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:minLength value="1" />
> <xs:maxLength value="64" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Address2" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="64" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="City" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="32" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="State" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="32" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Postal_Code_Id" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="16" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Country" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="32" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Country_Id" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="30" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="First_Name" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:minLength value="1" />
> <xs:maxLength value="16" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Last_Name" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:minLength value="1" />
> <xs:maxLength value="16" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Email" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="132" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Title" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="64" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Phone_Country_Code" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="5" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Phone_Area_Code" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="8" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Phone" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="16" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Ext" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="50" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Fax_Country_Code" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="50" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Fax_Area_Code" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="8" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Fax" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="16" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Rep" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="32" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Salesteam" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="80" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Territory_Id" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="32" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Lead_Status" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:minLength value="1" />
> <xs:maxLength value="20" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Priority" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:minLength value="1" />
> <xs:maxLength value="16" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="AddAuth" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:string"></xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="Account_Id" minOccurs="0">
> <xs:simpleType>