Dear W3C Schema developers! I have been asked by one of Your member (or W3C member) participated on XML Schema RFC to write to You why and how I want to use , and elements, because You have not received enough feedbacks to these elements. At first - I am very glad You have developed something like XML Schema. It looks much more better, readable etc. than DTD. Because I am developing web applications mostly based on relational (SQL) databases, I want to use XML for machine2user, machine2machine and user2machine exchange of database oriented data. So, properly created XML Schema should assure one of the principal database thing - DATABASE INTEGRITY (especialy in case of user2machine data exchange). How I imagine to utilize XML Schema? I know three types of database integrity (domain, entity, reference). Sorry, if I wrong translate integrity names into English. 1) DOMAIN INTEGRITY This integrity XML Schema can assure much more better (or precise) than standard databases. It is clear - setting correct simple type for an element~attribute using standard or restricted datatype. 2) ENTITY INTEGRITY For this type of integrity I need (as I think) XML Schema element . This element should assure, that within the scope of each element~record e.g. all elements~attributes, which are simple or complex primary key are unique e.g. , . Or, in general, in case of not setting of primary key of the table, which is not very common, all elements~attributes as the whole have to be unique. I have not found any other way to ensure that with XML Schema than . So this is the purpose I found essential. 3) REFERENCE INTEGRITY For this type of integrity I need (as I think) XML Schema element and . These elements should assure, that one element~attribute inside its element~record is unique and can be referenced from another element~attribute inside its element~record. For a better explanation see a small XML document which is an dump of a database simplified for purpose of this mail. 001 Suche skaly stepan.rybar@ceu.cz 001 001 Prvni vez 001 001 01 Jihozapadni hrana 001 001 02 Hopsava What should XML Schema assure: 1) Domain integrity a) has to be restricted to string containing numerical characters (string -> RegExp pattern) n) etc. 2) Entity integrity a) has to be unique within one instance of b) ( and ) has to be unique within one instance of , c) ( and and ) has to be unique within one instance of 3) Reference integrity a) has to be able to be referenced by and , which have their parent value b) has to be able to be referenced by , which have their parent value Well, I hope, I have explained need of elements , and in XML Schema RFC. If I have made any error or misunderstood XML Schema purpose, I am apologized for that. In case something is unclear in my mail, please, feel free to e-mail me for an explanation. Because I can not receive mails from this listserver group, if will be any need, contact me also via my e-mail address. Stepan Rybar, "stepan.rybar@ceu.cz" department of information technology the Czech Environmental Institute Prague, the Czech Republic, Europe