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

  • SEARCH
  • Home
  • 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 9239589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:01:28+00:00 2026-06-18T08:01:28+00:00

This is an excerpt from my schema: <xs:simpleType name=atypes.priorities> <xs:restriction base=xs:string> <xs:enumeration value=low />

  • 0

This is an excerpt from my schema:

  <xs:simpleType name="atypes.priorities">
  <xs:restriction base="xs:string">
  <xs:enumeration value="low" />
  <xs:enumeration value="standard" />
  <xs:enumeration value="normal" />
  <xs:enumeration value="high" />
  <xs:enumeration value="critical" />
  <xs:pattern value="[0-9]+" />
  </xs:restriction>
  </xs:simpleType>

When loading the schema in my XML editor (I am using XML Pad 3.0), I get the following validation error:

“Element value ‘low’ is not the value space of the base type, string”

Could someone explain this error to me? After all, ‘low’ looks like a string to me.

How do I correct this? Basically, my simple type should be either consist of digits, or be one of the words low, normal, high and critical.

  • 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-06-18T08:01:30+00:00Added an answer on June 18, 2026 at 8:01 am

    In your pattern restriction (regular expression) you say only numbers are allowed. Maybe removing that restriction will help.

    Or try changing it into:
    <xs:pattern value="[a-zA-Z0-9]+" />

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

Sidebar

Related Questions

Greetings! I must be seeing things. Look at this excerpt from the iPhone OS
I have this HTML structure (excerpt): <td> <select id=test1 class=pub_chooser> <option value=99>All Publications</option> <option
Here's a trivial excerpt from my XSD file <?xml version=1.0 encoding=UTF-8?> <schema xmlns=http://www.w3.org/2001/XMLSchema targetNamespace=ns
This is an excerpt of some c++ code, that i'll have to explain in
I read this question in stackoverflow. The excerpt answer provided by bbum is below:
I am using xjc to generate Java classes from the XML schema and the
I've posted an excerpt from my spring.xml file and the stack trace I'm getting.
I am trying to take a schema from an existing database and place it
This is similar to this question C# Get schema information when validating xml However,
I hope this isn't too specific. I have created an XML Schema which i

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.