472,958 Members | 2,276 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

XML Schema error on mutually exclusive fields

I have defined a schema with an xsd:choice element for 2 mutually
exclusive fields.

When both are present I get an error which is good, but what is not so
good is the error message which says something like "Element content
is invalid. Expecting: fieldname, {...."

The problem (if it is one) is that the "Expecting: fieldname..." bit
is wrong - fieldname is not the next field... in fact it's optional.
However it seems to have tagged the the correct field (the mutually
exclusive one) as being in error.

So is there truly an error here or is it simply a case of a crappy
somewhat misleading error message.
Jul 20 '05 #1
5 1839


wooks wrote:
I have defined a schema with an xsd:choice element for 2 mutually
exclusive fields.

When both are present I get an error which is good, but what is not so
good is the error message which says something like "Element content
is invalid. Expecting: fieldname, {...."

The problem (if it is one) is that the "Expecting: fieldname..." bit
is wrong - fieldname is not the next field... in fact it's optional.
However it seems to have tagged the the correct field (the mutually
exclusive one) as being in error.

So is there truly an error here or is it simply a case of a crappy
somewhat misleading error message.


Which validating parser are you using?

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
Martin Honnen <ma*******@yahoo.de> wrote in message news:<40********@olaf.komtel.net>...
wooks wrote:
I have defined a schema with an xsd:choice element for 2 mutually
exclusive fields.

When both are present I get an error which is good, but what is not so
good is the error message which says something like "Element content
is invalid. Expecting: fieldname, {...."

The problem (if it is one) is that the "Expecting: fieldname..." bit
is wrong - fieldname is not the next field... in fact it's optional.
However it seems to have tagged the the correct field (the mutually
exclusive one) as being in error.

So is there truly an error here or is it simply a case of a crappy
somewhat misleading error message.


Which validating parser are you using?


MSXML 4.0
Jul 20 '05 #3
Martin Honnen <ma*******@yahoo.de> wrote in message news:<40********@olaf.komtel.net>...
wooks wrote:
I have defined a schema with an xsd:choice element for 2 mutually
exclusive fields.

When both are present I get an error which is good, but what is not so
good is the error message which says something like "Element content
is invalid. Expecting: fieldname, {...."

The problem (if it is one) is that the "Expecting: fieldname..." bit
is wrong - fieldname is not the next field... in fact it's optional.
However it seems to have tagged the the correct field (the mutually
exclusive one) as being in error.

So is there truly an error here or is it simply a case of a crappy
somewhat misleading error message.


Which validating parser are you using?


MSXML 4.0
Jul 20 '05 #4
In <88**************************@posting.google.com >, on 07/16/2004
at 12:39 AM, wo****@hotmail.com (wooks) said:
MSXML 4.0


The software from m$ is notorious for incorrect, misleading and
unhelpful messages. Have you checked any of the alternatives?

--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to sp******@library.lspace.org

Jul 20 '05 #5
"Shmuel (Seymour J.) Metz" <sp******@library.lspace.org.invalid> wrote in message news:<40***************************@news.patriot.n et>...
In <88**************************@posting.google.com >, on 07/16/2004
at 12:39 AM, wo****@hotmail.com (wooks) said:
MSXML 4.0


The software from m$ is notorious for incorrect, misleading and
unhelpful messages. Have you checked any of the alternatives?


No I will stick to using MSXML but now I know not to panic over
idiosyncratic error messages. THank you.
Jul 20 '05 #6

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

Similar topics

3
by: softengine | last post by:
Can and how do you alter a data view to include a look up field from another data table? The data table of the dataview only has the key, the value I need is in another data table. Can and how...
5
by: WertmanTheMad | last post by:
Ive been playing with this for a few days and thought I might thow it out for seggestions. I have Several Queries that need counts returned The Queries are Mutually Exclusive meaning whatever...
2
by: js | last post by:
I include a asp:RadioButton in an ItemTemplate of a DataGrid like the following. However, the radio buttons are not mutual exclusive where select one will deselect the rest of the radio buttons. I...
0
by: sloan | last post by:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316495 Radio Buttons Are Not Mutually Exclusive When Used in a Repeater Server Control ... Has 2.0 fixed this bug ?
0
by: sloan | last post by:
BUG: Radio Buttons Are Not Mutually Exclusive When Used in a Repeater Server Control http://support.microsoft.com/default.aspx?scid=kb;EN-US;316495 I programmed up a pretty simple page in 2.0. ...
8
by: arun | last post by:
Hi Can any one suggest me how to access the mutually exclusive check boxes in a table of 7 rows by 14 columns. Only one can be selected in each row. Other than checking each one with if...
2
by: arun | last post by:
Hi Can any one suggest me how to access the mutually exclusive check box extender in a table of 7 rows by 14 columns. Only one can be selected in each row. Other than checking each one with if...
0
by: Gus Gassmann | last post by:
I have the following two elements in a large schema: <xs:complexType name="TimeDomainStageVariables"> <xs:sequence minOccurs="0"> <xs:element name="var" type="TimeDomainStageVar"...
9
by: btreddy | last post by:
Hii experts, I 've a gridview with one template coloumn with checkbox in that,which is used to to select the row..so once the user select one perticular checkbox..it has to clear the checkbox...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.