Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started