I have a couple of xml files I'd like to create xsd schemas for. This is not so difficult but the problem is that the strcuture of the xml file (something I can't easily influence) is strange. The files problem section look like this: 1.0
.jpg 128 128 65536 X Model X X1 7592597B-E087-4565-9BAC-596C096EBB2C X2 523DC659-B6F8-4b38-8EEB-B19E7AC7F2E3 1:1 TCFILETRANSFER 1 \\
My problem is not that I can create a working schema. It is that I'd like to have restrictions on all key elements which I cannot figure out how to do since they are all of different types. For example key name="defaultImageType" has a string as value and i'd like to have a restriction xs:enumeration value=".jpg | .bmp | .gif" but I also want to have key name="imageHeight with type xs:positiveInteger and so on. Is this possible, to have different types on elements with same name? Apparently the xml file works. And if it is allowed how can I do the schema? /Clatten