Q: 4
You are asked to create an XML schema for an Employee service that is required to search an HR
database in order to retrieve the maximum number of hours an employee is authorized to work
within a week. You are given the following specific instructions as to how the XML schema should be
designed:
• Add two complex types wrapped in "element" elements named "EmployeeHoursRequestType" and
"EmployeeHoursResponseType"
• The "EmployeeHoursRequestType" element must contain a child "ID" element of type integer. The
"EmployeeHoursResponseType" must contain a child "ID" element of type integer, and a child
"WeeklyHoursLimit" element of type short.
• The "xsd" prefix needs to be used for all XML Schema language elements.
Which of the following XML schemas fulfills the requirements while also following the instructions?


Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.