Re: Are this files correct?

Hi Tadeusz,

I think your date value is not a valid xsd:date format/value. Here is what I 
think it should be :

       ---------------------XML FILE START---------------------

<?xml version="1.0" encoding="UTF-8"?>
<Person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="test.xsd">
<Name>Tadeusz</Name>
<Surname>Chelkowski</Surname>
<Date>1976-05-05</Date>
</Person>

       -----------------------XML FILE END--------------------


       -----------------------XSD FILE START--------------------

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
elementFormDefault="qualified">
	<xsd:element name="Person">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="Name"/>
				<xsd:element ref="Surname"/>
				<xsd:element ref="Date"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="Name" type="xsd:string"/>
	<xsd:element name="Surname" type="xsd:string"/>
	<xsd:element name="Date" type="xsd:date"/>
</xsd:schema>


        -----------------------XSD FILE END--------------------


Try that and see if it's ok. According to XML Spy 4, the above XML file is 
well-formed and VALID with regards to the XSD Schema also provided above.

Regards,
Adrian Sobers
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Received on Friday, 29 June 2001 07:56:15 UTC