Question: Create an XML schema describing the following constraints: - A root element named: movie - The root element contains the following elements: ? title element
Create an XML schema describing the following constraints: - A root element named: movie - The root element contains the following elements: ? title element which is global (refactor from the template) token ? director element - token ? year element short with a default value of 2010 ? lengthInMinutes element an integer ? wideRelease element - boolean ? rating element a byte restricted to the range from 0 to 10 - The title element contains the following attribute: ? language can be either english or french (with a default value of english) All data types that you create (i.e. via extension or restriction) must be global. Create an associated XML document that validates against the schema. PART B Using the documents lab06b.xml and lab06b.xsd, refactor the schema so that: ? All of the data types are global instead of local ? All elements are global and therefore referenced (i.e. ref attribute) Show your work to your instructor for marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
