RE: Database schema from standards xsd

> There are ways to specify in XML Schema whether elements 
> should appear in a particular order or not (xs:sequence vs 
> xs:all). What you are probably saying here is that if the 
> schema says that elements can appear in any order, it does 
> not mean that the actual order of elements as they appear in 
> XML documents is insignificant to the application logic.

What I meant was that if you say

<xs:element name="authors">
  <xs:complexType>
    <xs:element name="author" maxOccurs="unbounded"/>
  </xs:complexType>
</xs:element>

then there is no way of knowing whether the order of the authors is
important. Because in the relational model tuples are unordered, significant
order needs to be represented in some other way, for example with integer
sequence numbers - which isn't an ideal representation if the sequence also
needs to be updateable.

Michael Kay
    

Received on Thursday, 3 April 2008 10:49:13 UTC