Case 13-1
Judy wants to be able to validate the XML documents that she uses for recipes. These documents include numeric elements that specify ingredient amounts and cooking times, so you recommend that she use a schema instead of a DTD, and you teach her some of the key facts about schemas.
-Judy has an attribute called "recipeType" that she uses to record whether the recipe is for an appetizer, entree, dessert, or other type of dish.This attribute only contains text.Which of the following would be a valid XML schema definition for this attribute?
A) <xs:attribute type="xs:string">recipeType</xs:attribute>
B) <xs:attribute name="recipeType" type="xs:string" />
C) <xs:attribute type="PCDATA">recipeType</xs:attribute>
D) <xs:attribute name="recipeType" type="PCDATA" />
Correct Answer:
Verified
Q59: A _ expression is a text string
Q60: The _ data type is a text
Q61: Case 13-1
Judy wants to be able to
Q62: The _ value of the use attribute
Q63: DTDs employ a syntax called _.
Q65: Case 13-2
Judy has begun to apply the
Q66: The _ value of the use attribute
Q67: Case 13-2
Judy has begun to apply the
Q68: Case 13-1
Judy wants to be able to
Q69: The string data type is _ data
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents