Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. In this exercise we shall explore a simplified use case scenario for XML: storing medical information We are interested in storing basic information about

image text in transcribed
. In this exercise we shall explore a simplified use case scenario for XML: storing medical information We are interested in storing basic information about hospitals, doctors, patients and their illness. Each hospital houses several patients. Patients may be registered with multiple hospitals (possibly for different illnesses). Each doctor is employed by a hospital, and may attend to multiple patients in the hospital. We want to store some basic information about each of the entities involved. For instance, a hospital may be characterized by an id, name, and location, a patient may have an id, date of birth, information about illnesses, hospitals attending, with joining dates, etc (a) Write a simple DTD (Healthcare.dtd) for this application. (b) Create a sample XML (Healthcare.xml) document respecting your DTD, and containing information about a few hospitals, patients, and doctors. (c) Write a program parse the XML and validate it against the DTD to display the information using any of your favorite programming language 2. Consider the following ER diagram. Number Year Qtr SECTION Students attended Ssn Name Class Grade Course_number STUDENT Course name (a) Write the DTD (Sections.dtd) corresponds to the hierarchy shown in the above design. (b) Consider your DTD and create a sample JSON (Sections.json) document containing information about a few sections, students and their grade (c) Write a program to parse the JSON and display the information using any of your favorite programming language

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

Step: 3

blur-text-image

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 Systems For Advanced Applications 9th International Conference Dasfaa 2004 Jeju Island Korea March 2004 Proceedings Lncs 2973

Authors: YoonJoon Lee ,Jianzhong Li ,Kyu-Young Whang

2004th Edition

3540210474, 978-3540210474

More Books

Students also viewed these Databases questions

Question

Ensure continued excellence in people management.

Answered: 1 week ago

Question

Enhance the international team by recruiting the best people.

Answered: 1 week ago