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 7638769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:15:14+00:00 2026-05-31T08:15:14+00:00

Could someone please explain to me a bit about this XML schema. I have

  • 0

Could someone please explain to me a bit about this XML schema. I have been reading for hours but I can’t figure out the part of the restriction part, and what are those restricted values suppose to mean?

<?xml version="1.0" encoding="utf-8"?>
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="storagehouse">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="item" maxOccurs="unbounded">

        <xs:complexType>
          <xs:sequence>
            <xs:element name="name" type="xs:string"  minOccurs="0"/>
            <xs:element name="weight" type="xs:float"  minOccurs="0"/>
            <xs:element name="category" type="xs:string" />
            <xs:element name="location" minOccurs="0">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="A1" />
                  <xs:enumeration value="A2" />
                  <xs:enumeration value="A3" />
                  <xs:enumeration value="A4" />
                  <xs:enumeration value="B1" />
                  <xs:enumeration value="B2" />
                  <xs:enumeration value="B3" />
                  <xs:enumeration value="B4" />
                  <xs:enumeration value="C1" />
                  <xs:enumeration value="C2" />
                  <xs:enumeration value="C3" />
                  <xs:enumeration value="C4" />
                  <xs:enumeration value="D1" />
                  <xs:enumeration value="D2" />
                  <xs:enumeration value="D3" />
                  <xs:enumeration value="D4" />
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
      </xs:sequence>
      <xs:attribute name="id" type="xs:string" use="required"/>
      </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
  • 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-31T08:15:16+00:00Added an answer on May 31, 2026 at 8:15 am

    Explanation of the restriction part:

    • The element called location is an element of simple type with restriction.

    • The restriction element defines restrictions on a set of values : The only acceptable values for the element locationare “A1”, “A2”, … , “D3”, “D4”.

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

Sidebar

Related Questions

Could someone please help explain why I can't get this to work? I properly
could someone please explain this to me: I have an MVC method I want
Could someone please explain why this is happening. I have simplified my problem by
Could someone please explain? I couldn't find anything on the internet, everything talks about
please, could someone explain to me a few basic things about working with languages
Could someone please take a look at this sloppy code and explain to me
Could someone please explain why when you have an plain widget as one line
Could someone please explain, what exactly this O_LARGEFILE option does to support opening of
Could someone please explain to me why recursive-descent parsers can't work with a grammar
Could someone please explain what the for loop in this class does? Specifically the

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.