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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:38:22+00:00 2026-05-16T14:38:22+00:00

I am not a programmer, so this may or may not make sense, but

  • 0

I am not a programmer, so this may or may not make sense, but I would like to be able to link an external data file to an XSD file to specify whether a user belongs to a certain group.

Without linking, the code currently stands as:

<xs:element name="user">
    <xs:simpleType>
      <xs:restriction base="xs:string">
          <xs:enumeration value="user1">
          <xs:enumeration value="user2">
          <xs:enumeration value="user3">
      </xs:restriction>
   </xs:simpleType>
</xs:element>

When an XML file is created from this, a user must be from one of the values listed.

Instead of listing the various enumeration values in the XSD file, I would like to link to an external file that can be be easily updated to add allowable users to the XSD file.

  • 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-16T14:38:23+00:00Added an answer on May 16, 2026 at 2:38 pm

    This is not possible in XML Schema. The choice is between enumeration inside the schema (but then it’s hard to add values) or writing additional external validation code (but then you have code to write).

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

Sidebar

Related Questions

I'm a novice programmer. This may be a simple problem but I've never seen
This may not be the right place for this question, but the reason I
I am not professional programmer so i can not be sure about this.How many
I am not a programmer, I am struggling a bit with this. I have
So I am obviously not a very good programmer. I have written this small
This not a programming question but Most of the programmers using Eclipse should have
First of all, I'm not much of a programmer if at all. This question
Im teaching myself rails. Im a programmer but not a web programmer. Im going
I'm not primarily an html programmer, but I'm using HTML to format the display
Maybe not the best title I can think of but my problem is this:

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.