W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Re: Are this files correct?

From: Adrian Sobers <ajsobers@hotmail.com>
Date: Fri, 29 Jun 2001 11:55:44 -0000
To: Tadeusz.Chelkowski@softwareag.com, xmlschema-dev@w3.org
Message-ID: <F143yp8ARf3sllNY30k00000148@hotmail.com>
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" 

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

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

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

        -----------------------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.

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC