473,385 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

XML & XSD Schema validation - "all"

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

Mar 15 '06 #1
3 2032
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

"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:12*************@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

Mar 15 '06 #2
"vj" <vi********@yahoo.com> wrote in message
news:O9**************@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
Mar 15 '06 #3
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

"vj" <vi********@yahoo.com> wrote in message
news:O9**************@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" <ca*****@tamu.edu> wrote in message
news:12*************@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


Mar 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Matt | last post by:
In ASP page, there is a "SELECT ALL" button, when user click it, it will select all checkboxes. I am not sure should I use client-side code to do that? the following is my approach but it didnt...
10
by: KENNY L. CHEN | last post by:
Dear experts, I have two tables in my Oracle 8i database: TEST (COL1,COl2,REC_NO) and TEST1 (COL1,COL2,REC_NO). Both tables are unique-indexed on (COL1,COL2,REC_NO). I think the following...
0
by: Oleg Ogurok | last post by:
Hi all, It seems a Web Deployment Project always installs as "Just Me". I have a merge module project that has to install as "All Users" as part of my web application. This is because in "File...
3
by: Adam Toline | last post by:
In reference to the following: http://www.bellecose.com/form.htm At the top of each column there is a box for "All". When one is checked I need to check all of (and only) those boxes...
4
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2)...
2
by: Murphy | last post by:
Our website contains subdirectories for each subsidiary company, each company has it's own look and feel to the pages in their subdirectory although they are all part of the main website. The...
7
by: Jaime Stuardo | last post by:
Hi all.. I have a DataGrid with checkboxes. In the header I have a "check all" checkbox. I'm wondering if there is an easy way to check all checkboxes using that checkbox. I could do it using...
2
by: getmeidea | last post by:
Hi all, String x = "\\"; This string will have the value \. Now for any string contains \, i need to replace with \\. But when i use x = x.replaceAll("\\", "\\\\"); I am getting runtime...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.