Multiple Choice
Case 3-2
Judy has begun to apply the basic information that you have given her about schemas, and she would now like your help in mastering the details of how schemas work.
Judy has included the following element definition in her schema:
<xs:element name="ingredient">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="amount" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
-Judy would like to indicate that the ingredient element must appear at least once in a recipe, and that it cannot appear more than 20 times. Which of the following should she add to the element declaration to indicate these restrictions?
A) occurs="1:20"
B) occurs="[1:20]"
C) use="1:20"
D) minOccurs="1" maxOccurs="20"
Correct Answer:

Verified
Correct Answer:
Verified
Q17: XML Schema allows for ample flexibility in
Q28: Case 3-1<br>Judy wants to be able to
Q29: Case 3-2<br>Judy has begun to apply the
Q36: Case 3-1<br>Judy wants to be able to
Q37: When the <u>mixed</u> attribute is set to
Q61: Date values must be entered in the
Q62: The _ facet specifies the maximum number
Q80: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB1894/.jpg" alt=" -A(n)_ data type
Q84: When data values belong to a range
Q86: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB1894/.jpg" alt=" -A(n)_ data type