Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7158025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T12:59:33+00:00 2026-05-28T12:59:33+00:00

I am receiving the following validation error in the WebSphere MQ Broker Tool v7.0

  • 0

I am receiving the following validation error in the WebSphere MQ Broker Tool v7.0 when working with a generated .xsd:

a-props-correct.2: Invalid value constraint value '0' in attribute 'attrname'.

The relevant .xsd text is the usage of the attribute:

<xsd:complexType name="CTypeContent">
    <xsd:simpleContent>
        <xsd:extension base="xsd:base64Binary">
            <xsd:attribute name="attrname" type="BooleanType" use="optional" default="1" />
        </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>

And the definition of the attribute:

  <xsd:simpleType name="BooleanType">
    <xsd:restriction base="xsd:boolean">
      <xsd:pattern value="0|1" />
    </xsd:restriction>
  </xsd:simpleType>

I have Googled and found many discussions about SOAP and the like but that seems a bit off my project. I just want to ensure that the logic in the .xsd is well founded.

EDIT:

The error disappears if I remove the default piece of the attribute. This isn’t a solution for me – but perhaps it helps in a diagnosis.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T12:59:34+00:00Added an answer on May 28, 2026 at 12:59 pm

    The XSD snippets are valid, so the error you’re getting makes no sense. I believe it is rather a bug in your WMB software.

    What version of WMB are you using?

    Since you seem to be able to play with the XSD, it would also help with troubleshooting if instead of removing the default attribute, try to rewrite the pattern from one with the value of “0|1”, into two separate patterns, one with a value of “0”, and another with the value of “1”. I’ve seen before with other products from the same vendor where patterns associated with xsd:boolean fail miserably.

    UPDATE: Since posting this, I’ve ran myself into this and other similar scenarios, and realized that schema processors behave differently while validating what seems to be basically the same thing: a schema that correct according to the spec, yet practically it describes an impossibility. And this is where things get interesting as to what correct is.

    This case is a bit more subtle maybe, since it involves getting this and this right; basically if a default kicks in, it’ll use the canonical representation of the associated value (not the string in the default value!). Since 1 means True for a boolean, the canonical representation of that is the string true which now obviously doesn’t match the pattern (which deals with the lexical representation – string basically) 0|1 which in turn makes these two incompatible. Considering PSVI, an XML processor that is XSD aware cannot create valid XML when applying the default. This is what the error message says.

    To show other imposibility that is not flagged by any XSD processor I am typically using, consider this particular snippet:

    <xsd:complexType name="Test">
        <xsd:sequence>
            <xsd:element name="Impossible" type="Test"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="Test" type="Test"/>
    

    It is impossible to create a valid XML out of this XSD, just as having a default=”1″ and attribute missing in your case (of pattern restricted to 0 and 1).

    To me, both scenarios are somewhat similar to a code compiler catching (at compile time) a divide by zero condition – where it can.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am receiving the following error in my Lisp code: value (PROBLEM1 (+ N
Background I'm receiving the following error when trying to render a partial view in
I am receiving the following error in PHP Notice undefined offset 1: in C:\wamp\www\includes\imdbgrabber.php
I am receiving the following error in my code (c#, .Net 3.5, VS2008) when
I am receiving the following error when I try to send mail using a
I seem to be intermittently receiving the following error: BigQuery error in query operation:
I'm trying to implement my own GenericIdentity implementation but keep receiving the following error
I am importing an android app into Eclipse. I am receiving the following error
I am receiving an error on the following line of code: Object reference not
Using adLDAP.php class receiving following error: Notice: Undefined index: memberof in /web/ee_web/include/adLDAP.php on line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.