Answered step by step
Verified Expert Solution
Question
1 Approved Answer
errors. Part of your job is to find and correct those errors using validation reports from the schemas you create. Review Assignments Data Files needed
errors. Part of your job is to find and correct those errors using validation reports from the schemas you create. Review Assignments Data Files needed for the Review Assignments: degreestxt.xml, degreestxt.xsd Each department at Austin Technical College must maintain information on the associate's degrees it U offers; each associate's degree must be approved by a college authority. Sabrina has created an XML vocabulary containing information about the different degrees offered by the Information Technology department. She wants you to create a schema to validate the degree information. Figure 3-38 shows the structures of the degrees vocabulary that you'll create. Figure 3-38 The structure degrees title approvalDate effectiveDate coment A description of the elements and attributes used in the degrees vocabulary is shown in Figure 3-39 Figure 3-39 The d vocabula Element or Attribute degrees degree degreeID The root element The collection of information about a degree The ID number of the degree with the format T00-0-,where i a digit The in-house code for the degree (MP, SP,or WPA The title of the degree The date the degree The date the degree curriculum becomes effective The descriptive summary of the degree The currently assigned degree coordinator A comment regarding the degree The date of the comment title approvalDate effecti unnarY was approved by the college veDate Sabrina already created a document containing a list of degrees currently offered by the Information Technology department. She wants the document validated based on a schema you create. Complete the following: 1. Using your XML editor, open the degreestxt.xml and degreestxt.xsd files from the xmlo3review folder, enter your name and today's date in the comment section of each file, and then save the 2. In the degrees.xsd file, add the root schema element to the document and declare the XML 3. In the degrees.xml file, attach the schema file degrees.xsd to this instance document, indicating 4. In the degrees.xsd file, create the following named simple types: files as degrees.xml and degrees.xsd, respectively. Schema namespace using the xs prefix, and then save your work. that the schema and instance document do not belong to any namespace, and then save your work. a. idtype, based on the ID data type and restricted to the regular expression pattern IT d (2-d(3)-d(3 b. codeType, based on the string data type and restricted to the following values-MP, SP, WPA 5. Declare the degrees element containing the child element degree. 6. Declare the degree element containing the following sequence of nested child elements- title, approvalDate, effectiveDate, summary, coordinator, and comment. Set the following properties for the nested elements: a. All of the child elements should contain string data except the approvalDate and effectiveDate elements, which contain dates. The degree element should also support two required attributes-degreeID and degreeCode. The degreeID attribute contains idType data, while the degreecode attribute contains codeType data. b. The degree element must occur at least once, but its upper limit is unbounded. The approvalDate element is optional. The comment element is optional, and it may occur multiple times. All other elements are assumed to occur only once. c. Each coment element requires a date attribute of the date data type. errors you find. errors you discover in the instance document. 7. Save your changes to the degrees.xsd file, and then validate the schema document. Correct any 8. Validate the degrees.xml file against the schema document you created. Correct any validation ?xml version="1.0" encoding="UTF-8"?> > - Berstein dateOfEnrollment 201 7-05-22ccredits 12 - clastName> Boothec/lastName cfirstName>Jennifer2017-11-24 38 Applied for summer studies internship - Bowen efirstName> Kristi 2017-04-25 cgpa degree="MP">3.88 - Sanchez Rosario dateOfEnrollment 201 7-08-14ccredits 14 Applied for student tutor Applied for Women in IT Scholarship cgpa degree = "WPA">3.89 - Russeon Alison 2017-09-14 ccredits 15 gpa degree ="WPA"> 2.76 Activate Windows Go to Settings to activate Window
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