Home All Groups Group Topic Archive Search About

XML & XSD Schema validation - "all"

Author
15 Mar 2006 1:57 PM
Adam Clauss
I'm running into a problem with schema validation.  For some reason, if a
schema has an xs:all section to it, it does not validate correctly.  It
seems to treat it as a sequence.  My understanding is that switching to an
xs:all should not require that the child elements be in any particular
order - yet that is exactly the error I am seeing.

I've tested this on both .NET 1.1 and .NET 2.0 and I get the same error.
The XML validates against the xs:all schema just fine in XMLSpy 2005.

Any ideas?

--
Adam Clauss

Author
15 Mar 2006 3:32 PM
vj
Interesting.... i have not had this problem.. i do the same... uhmm, .NET
1.0 and above use MSXML.. are you aware of that?

VJ

Show quoteHide quote
"Adam Clauss" <caba***@tamu.edu> wrote in message
news:121g79s9ikpb0db@corp.supernews.com...
> I'm running into a problem with schema validation.  For some reason, if a
> schema has an xs:all section to it, it does not validate correctly.  It
> seems to treat it as a sequence.  My understanding is that switching to an
> xs:all should not require that the child elements be in any particular
> order - yet that is exactly the error I am seeing.
>
> I've tested this on both .NET 1.1 and .NET 2.0 and I get the same error.
> The XML validates against the xs:all schema just fine in XMLSpy 2005.
>
> Any ideas?
>
> --
> Adam Clauss
>
>
>
Are all your drivers up to date? click for free checkup

Author
15 Mar 2006 5:07 PM
Adam Clauss
"vj" <vijayba***@yahoo.com> wrote in message
news:O94ebWESGHA.5900@tk2msftngp13.phx.gbl...
> Interesting.... i have not had this problem.. i do the same... uhmm, .NET
> 1.0 and above use MSXML.. are you aware of that?
>
> VJ

Would you mind posting a short snippet of the code you are using to
validate?
I've gone round and around with this, and I just can't figure it out.
Our code basically matches the other samples I've found, but none of those
samples mentioned trying against xs:all either.

--
Adam Clauss
Author
15 Mar 2006 5:30 PM
vj
If you have what the samples have... then, that is what I have... nothing
different... I am thinking this more of mismatch of DLL file... just
thinking how do we track it..., do u have a sample..? I can run on my
machine, see if I get it..

VJ

Show quoteHide quote
"vj" <vijayba***@yahoo.com> wrote in message
news:O94ebWESGHA.5900@tk2msftngp13.phx.gbl...
> Interesting.... i have not had this problem.. i do the same... uhmm, .NET
> 1.0 and above use MSXML.. are you aware of that?
>
> VJ
>
> "Adam Clauss" <caba***@tamu.edu> wrote in message
> news:121g79s9ikpb0db@corp.supernews.com...
>> I'm running into a problem with schema validation.  For some reason, if a
>> schema has an xs:all section to it, it does not validate correctly.  It
>> seems to treat it as a sequence.  My understanding is that switching to
>> an xs:all should not require that the child elements be in any particular
>> order - yet that is exactly the error I am seeing.
>>
>> I've tested this on both .NET 1.1 and .NET 2.0 and I get the same error.
>> The XML validates against the xs:all schema just fine in XMLSpy 2005.
>>
>> Any ideas?
>>
>> --
>> Adam Clauss
>>
>>
>>
>
>

Bookmark and Share