1. Correct the errors if any to make the document as Well formed. (Save it as rentals.xml). You can download the files (house1.jpg, house2.jpg, house3.jpg) from test_partb dropbox folder.
< ?xml version="1.0"?>
< Rentals>
< Rental MLSNo ="A001">
< Details>Single Home & Well Maintained< /Dtails>
< Image fileref=='house1.jpg"=>
< Built>1985< /Built<
< Agent>John King < agent/>
< Rental>
< Rental MLSNo ="A002">
< Detail>Semi-Detached & Poorly Designed< /Details>
< Image fileref=[house2.jpg'>
< Built>1990< < built>
< CostPrice>20,500.00< CstPrice/>
< /Rental>
< Rental MLSNo ="A003">
< Details>Bungalow & Well Spaced< /Detail>
< Image filref=='house3.jpg'>>
< Built>1987< < Built>
< Agent>Peter Paul < |agent>
< /Rental>
< Rentals>
(a)Correct the errors and verify whether it is well-formed (i.e.) there shuould not be any errors and able to display in the browser. (Paste the browser output in the solution document.)
(b)Modify the rentals.xml document to add the following child elements and attributes to each of the Rental element (not Rentals element) with meaningful data:
(c)Create the DTD (rentals_new.dtd) based on rentals_new.xml to make a valid document. (i.e.) Modify the rentals_new.xml to add DOCTYPE to validate the XML file with DTD. Paste the Validation Screen in the solution document.
(d)Write an xsl document (rentals_new.xsl) based on rentals_new.xml to display. The sample format is given below:
Property Details (MLS No)
Picture (display the actual image and not the filename)
Cost Price
Agent
Built
Name :
Address :
Phone :
Email(s) : one after another if multiple emails are used