Re: How to improve XSD for a list with differently typed items + multiplicity and uniqueness constraints

Hi,

gvt.junk@free.fr <gvt.junk@free.fr> writes:

> Is there any chance to write an alternate XML schema that enforce all these
> rules, but produce "better-looking" compliant document that would look like 
> the following one, with reduced nesting levels?

Yes, you can do this with substitution groups and uniqueness constraints.

Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

Received on Thursday, 23 April 2009 06:57:47 UTC