Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions

Question

javascript chapter 10-3 hands-on Project

Answered: 1 week ago

Question

here) and other areas you consider relevant.

Answered: 1 week ago