Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Ignore Order while validating XSD

From: "Mukul Gandhi" <gandhi.mukul@-----.--->
To: "Ramkumar Menon" <ramkumar.menon@-----.--->
Date: 2/20/2006 4:23:00 AM
I am not sure how difficult it is to support this scenario within XSD.
The XSD validator vendors are the right people to comment on this.

The XML Schema spec says "The choice group element allows only one of
its children to appear in an instance". So I think the XSD validator
should support the example I posted. If you have 10 or more elements,
then definitely the approach I suggested would be cumbersome.

Presently the XML Schema spec says following about the all group "All
the elements in the group may appear once or not at all, and they may
appear in any order". I think its a good idea to remove the
restriction of "once or not at all", and allow any number of
instances.

Regards,
Mukul

On 2/19/06, Ramkumar Menon <ramkumar.menon@g...> wrote:
> Thanks, Mukul.
> Is there any special reason why such a simple scenario is so complex to
> support witihn XSD ? The suggestion below definitely seems good, but a
> schema with 10 or more elements [which is the case with my scenario] look=
s
> very complex - visually at least - and loses readability.
> rgds,
> Menon

From ralf.lammel@m... Mon Feb 20 00:57:35 2006
Received:


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent