Ask Question
11 August, 07:47

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?

+3
Answers (2)
  1. 11 August, 07:58
    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
  2. 11 August, 09:54
    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.
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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers