W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2002

Re: Question about different content-model for element w/ same name

From: Ian Stokes-Rees <ijs@decisionsoft.com>
Date: Tue, 23 Jul 2002 09:32:31 +0100
To: Jeroen Koops <jeroen@empanda.net>
Cc: Dare Obasanjo <dareo@microsoft.com>, "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <20020723093229.C29544@decisionsoft.com>

On Mon, Jul 22, 2002 at 11:49:46PM +0200, Jeroen Koops wrote:
> On Mon, 22 Jul 2002, Dare Obasanjo wrote:
> > > 
> > > <xs:element name="...">
> > >  <xs:complexType>
> > >   <xs:choice>
> > >    <xs:element name="myName" type="myFirstType"/>
> > >    <xs:element name="myName" type="mySecondType"/>
> > >   </xs:choice>
> > >  </xs:complexType>
> > > </xs:element> 
> > > 
> > 
> > Nope. This is invalid. 
> Great! (I'm trying to write a schema-validator, and this was a bit of a
> worry). I now see in paragraph 3.8.1 the clause which indeed explicitly
> disallows the above example, it says:

Unless it is for the academic exercise, you will probably find you are
better off using one of:

Xerces-J (generally taken to be the most accurate schema validating XML
          parser available)
Oracle XDK (not sure about the licensing status of this)

rather than writing your own from scratch.  The two Xerces parsers have
the advantage of being open source (i.e. you can contribute to their
development or do your own customisations and bug fixes), and
cross-platform.  I believe Oracle XDK is also available for a number of
platforms, but possibly not Linux on x86.  MSXML v4 is also quite good
and part of almost every Windows installation.

You may find some useful comparison information in some of the following


... I've just realised that there is a shortage of any benchmarks or
comparisons of the various parsers.  I have seen something which
compares the performance of various parsers against the schema test set
which has been accumulated, but I can't seem to find a URL for that


Ian Stokes-Rees, Client Services      DecisionSoft Limited
+44-1865-203192                       http://www.decisionsoft.com
Received on Tuesday, 23 July 2002 04:33:06 UTC

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