Question: Subject Web Languages 1-Consider using an XML document to represent information about students on an MSc programme. All information should be represented using elements rather

Subject Web Languages

1-Consider using an XML document to represent information about students on an MSc programme. All information should be represented using elements rather than attributes. The root element of the document is programme. A programme has a degree, whose value in this case is "MSc", and a year, whose value in this case is "2018/19". These elements are followed by the results for the programme. The results are partitioned into distinction, merit, pass and fail. Within each is a sequence of name elements, each containing the name of a person having achieved the corresponding result for the programme. The actual results are as follows: Jemima Puddle-Duck and Peter Rabbit obtained distinctions, Tom Kitten obtained a merit, and Samuel Whiskers failed (nobody obtained only a pass).

2-Consider a relational database containing a relation teaches with attributes course and lecturer, representing the relationship between courses taught on an MSc programme and the lecturers who teach them. Give an XML document which represents a relation instance containing two tuples. (You are free to make up your own course and lecturer names.)

3-Now represent the information in both the above exercises in JSON rather than XML.

Do the exercises above An example of this is the questions that the professor solved in the pictures below

 Subject Web Languages 1-Consider using an XML document to represent informationabout students on an MSc programme. All information should be represented using

XML Example Representing information about a collection of classical CDs: cd-collection.xml Martha Argerich Korchestra>London Symphony OrchestraClaudio Abbado 1968 Frederic Chopin Piano Concerto No. 1 Franz Liszt Piano Concerto No. 1 Antonin DvorakSymphony No. 9 Vienna Philharmonic) Kirili Kondrashin 1980 American Suite Royal Philharmonic) Antal Dorati 1984 JSON example XML CDCollection example from earlier, represented in JSON { "CDs": [ { "soloist": "Martha Argerich", "orchestra": "London Symphony Orchestra", "conductor": "Claudio Abbado", "date": 1968, "performances": [ { "composer": "Frederic Chopin", "composition": "Piano Concerto No. 1" }, { "composer": "Franz Liszt", "composition": "Piano Concerto No. 1" } ] }, "composer": "Antonin Dvorak", "performances": [ { "composition": "Symphony No. 9", "orchestra": "Vienna Philharmonic", "conductor": "Kirill Kondrashin", "date": 1980 }, { "composition": "American Suite", "orchestra": "Royal Philharmonic", "conductor": "Antal Dorati", "date": 1984 } 7 ] }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!