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 "substitution" attribute is a required attribute. Which of the following attribute definitions shows how to accomplish this?
A) <xs:attribute name="substitution" type="xs:string" use="required" />
B) <xs:attribute name="substitution" type="xs:string" required="yes" />
C) <xs:attribute name="substitution" type="xs:string" use="mandatory" />
D) <xs:attribute name="substitution" type="xs:string" status="mandatory" />
Correct Answer:

Verified
Correct Answer:
Verified
Q6: A _ is a text string of
Q13: An attribute is an example of a(n)_
Q25: A file written in XML Schema typically
Q42: <u>XML Schema</u> was created to replicate all
Q55: Discuss the limits of DTDs, using examples.
Q78: A regular expression is a text string
Q82: A primitive data type is also known
Q82: If an element contains attributes, you have
Q84: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TBX9153/.jpg" alt=" Which of the
Q86: Case 3-1<br>Judy wants to be able to