Exercise 1
The following is a fragment of an XML document instance. Identify all the places where it fails to match the constraints for well-formedness.
Advance Notice of Sick LeaveAll employees are required to provide at least one week's notice of sick leave. The formal procedure is as follows.As soon as you know that you intend to take leave, obtain the following - Doctor's note
- Application form
- Complete the form and submit it to personnelPersonnel will confirm agreement within two working days, or
Deny sick leave NOTE: Once agreed, sick leave cannot be cancelled or postponed For postponement, a new form must be submitted
A Nutter Head of Personnel
Exercise 2
Create an XML file with markup tags and some sample data to represent a list of invoices. Include the XML tags for two invoices in the list. Also, assume the invoices are created from a database whose tables are shown in the following database relationship diagram.
![2272_Untitled.png](https://secure.tutorsglobe.com/CMSImages/2272_Untitled.png)
That is, the invoice header information is stored in the table invoice. The invoice table is linked to lines, which hold the many line items of the invoice. Each line item is linked to a product containing information on the particular product, which in turn is linked to the suppliers table where information on the supplier of the product can be found.
Exercise 3
Modify the XML document in Exercise 2 to include a namespace URL from which the elements of the XML document in Exercise 3 will be associated with. Make any changes to the XML document that are necessary as a result of the namespace URL inclusion.
Create an actual Web page document which is referenced by the namespace URL, and include any information you feel necessary.