[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XML Schema

From: Udo Ende <u.ende@mid.de>
Date: Tue, 8 Nov 2005 16:41:21 +0100
To: "Xmlschema-Dev-Request" <xmlschema-dev@w3.org>
Message-ID: <E1EZVdu-0005l6-SU@aji.w3.mag.keio.ac.jp>
XML Schema

Hi,

I do not find a solution for my following problem:

The root elements of my XML data contain many different inner elements.
Therefore I chose a complexType definition for the root elements.

Some of the inner elements are only optional, others are included more than
one time (therefore I can not use "all" for the complexType).

I can not tell in which order the inner elements will appear. Therefore I
can not use "sequence" for the complexType.

I decided to use "choice" - with the attribute "maxOccurs" "unbounded" not
only allowing one element under the root elements.

But with that it seems I lose a validation opportunity to tell if an inner
element must appear or is only optional (minOccurs 1 for the inner elements
does not show a difference within validation).

Any idea how I could handle this situation?

Regards,
Udo
Received on Tuesday, 8 November 2005 15:44:18 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.