Ask Question
24 December, 09:41

If you were building an XML Schema and wanted to limit the values allowed in an xs:string field to only those in a particular list, what XML tag would you use in your XML Schema definition?

+5
Answers (2)
  1. 24 December, 09:46
    0
    Answer and explanation:

    After some research on this task, and if I was building an XML Schema and wanted to limit the values allowed in an xs:string field to only those in a particular list, I would use the enumeration constraint so that I get to limit the content of acceptable values.
  2. 24 December, 10:04
    0
    enumeration constraint.

    Explanation:

    Enumeration constraints is a definition term or tag in programming language, that is used in assigning values to variables in order to generate partial solutions, so as to remove from the constraint network the conflicting values that do not lead to any feasible solution.

    For example: not xs:element or xs:sequence

    Here, using enumeration constraints, to limit the content of an XML element to a set of acceptable values:

    The example below defines an element called "music_genre" with a restriction. The only acceptable values are: Blues, Reggae, Country:

    Hence:

    Using not xs:element
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “If you were building an XML Schema and wanted to limit the values allowed in an xs:string field to only those in a particular list, what ...” in 📗 Social Studies if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers