Diagram of the table containing the initial data

Assignment Help Database Management System
Reference no: EM13192811

A simple database with a single table contains data concerning rental properties in Australia. The table contains five fields that store data relating to street address, city, postcode, number of bedrooms and weekly rent e.g. 4/331 Albert Street, Ballarat, 3350, 3, 230.00. There are constraints placed on the data that are described below.

The assignment tasks are closely associated with the lab work of topics 8 to 10. Code which is provided in the topic 10 lab work should be a useful guide throughout this assignment.

The assignment requires a number of files and a report to be produced. The report should respond to written tasks that are included below.

Initial task

In a word document, create a table of about 6 records with no NULLs. The street address may contain a unit number as in the example given above. Add the table to your report, showing clearly the names of the table and the fields.

Tasks supported by Topics 7 and 8

Mark up the table of data using XML tags and save it as an .xml file. Check that the file is well-formed and report the method used. Make a deliberate error and report the error message.

Create a corresponding XMLSchema file (.xsd) that contains the following constraints:

• the street address and city are strings each with a maximum of 30 characters;
• the postcode is a string of exactly 4 digits, the first digit being non-zero;
• the number of bedrooms is an integer between 1 and 5 (inclusive);
• the weekly rent is a positive (non-zero) number less than 1000 expressed with two decimal places.

Use the .xsd file to validate your .xml file. Test the validation of the .xml file by breaking each constraint in turn and report the results. Also deliberately invalidate the .xml file (but keeping it well-formed) and report the response.

Task supported by Topic 9

Create an XSLT stylesheet file (.xsl) that supports the display of the data in a table. The data is to be displayed either in ascending postcode order or in ascending weekly rent order as requested by the user.

Task supported by Topic 10

Create new DOM documents for each of your .xml and .xsl files. Use these to generate output to the browser. Comment on the result.

Research

Access the XML DOM Tutorial at https://www.w3schools.com/dom/dom_nodes_set.asp. Under the ‘Manipulate Nodes' heading study the ‘Get Values' and ‘Change Nodes' sections. It will be important to have an understanding of the Dom Node Tree from Topic 10 prior to this study. Write your own code to show that you can both retrieve the value of the weekly rent of the first record in your XML file and change its value.

Report contents

1. Diagram of the table containing the initial data.

2. State how you checked that the XML file is well-formed.

3. What messages are sent if it is not well-formed?

4. State how you checked that the XML file is valid.

5. What messages are sent if the XML file is well-formed but not valid?

6. What messages are sent if constraints are not met by the data?

7. How is the .xsd file validated?

8. Comment on the output provided by your two DOM documents.

9. Draw a diagram showing the structure of the DOM tree associated with the .xml file, using data from any ONE record.

10. Give details of any assistance received (apart from teaching staff).

Reference no: EM13192811

Questions Cloud

Define amino acid in an ion exchange chromatography column : particular amino acid in an ion exchange chromatography column. What is the peak width after the amino acid has migrated 100 cm?
State the mineral rhodochrosite manganese carbonate : The mineral rhodochrosite [manganese (II) carbonate, MnCO2] is a commercially important source of manganese. Write a half reaction for the oxidation of the manganese in MnCO3 to MnO2 in neutral groundwater
Create a package called my complete system : Author a new class within your newly created package called MySystemGui. In this class, you need to extend the JFrame class and implement the appropriate listeners so that your system will work.
Discuss the issues involved in managing software selection : Prepare a PowerPoint presentation which summarizes the background, requirements, analysis and reasons for your choice. Alternative presentation formats such as Prezi are acceptable
Diagram of the table containing the initial data : Diagram of the table containing the initial data - state how you checked that the XML file is well-formed and what messages are sent if it is not well-formed?
State what are the favored geometrical arrangements : What are the favored geometrical arrangements for ABn molecules for which the "A" atom has 2,3,4,5 and 6 pairs of electrons in its valence shell?
State balanced molecular complete ionic and net ionic : balanced molecular complete ionic and net ionic equations for the reactions btween nitric acid and calcium hydroxide?
Determine the benefits of data mining to the businesses : Determine the benefits of data mining to the businesses when employing - Predictive analytics to understand the behavior of customers
State the molar heat capacities of iron and gold : The molar heat capacities of Iron and Gold are 24.19 J/mol C and 25.41 J/mol C respectively. What is the final temperature of the water and pieces of metal?

Reviews

Write a Review

Database Management System Questions & Answers

  Computing functional dependencies

Compute the functional dependencies which exist in following table. After determining the functional dependencies, transform this table to an equivalent collection of the tables which are in third normal form.

  Referential integrity constraint prevent from data inserting

What actions does a referential integrity constraint prevent from occurring when data is inserted in a table that contains this constraint?

  Code an oracle database trigger

Code an Oracle Database trigger to enforce the constraint that an employee can never change his or her department.

  Database management challenge than relational database

What is it about a 200 MB video or audio file which makes it so much more of database management challenge than relational database the same size?

  Define a data flow in bus information system

Name four attributes that you can use to define a data flow in the bus information system. Name four attributes that you can use to define a data store in the bus information system.

  Determine airports with late flights to toronto-database

Determine airports with late flights to Toronto on a big plane. "Late" means departing after 9:00pm; "big" means with capacity 150 passengers or more

  Write the application for university admissions office

Write the application for university admissions office. Prompt user for a student's High School Grade Point and an admission test score.

  Dimensions and attributes in a star schema model

Explain the use of facts, dimensions and attributes in a star schema model. Explain the use of facts, dimensions and attributes in a star schema model.

  Pharmacy designating database

Pharmacy systems today are more efficient and user friendly when compared to the systems 20 years ago.

  An active database in pl-sql

Did the corresponding lines for invoices 1001 and 1008 in table LINE get deleted automatically? Can you explain why?

  Describe product characteristics and deliverables

Develop a scope statement for the project and describe product characteristics and deliverables.

  Write names and e-mail addresses showing foreign key columns

Illustrate all the data in each of four tables. Don't show foreign key columns. Write down the names and e-mail addresses for all customers who have had stove repair which cost more than $50.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd