Exercise 18: XML

Not Turned in

You are to create an HTML document that uses an XML document to perform data-binding with a data table that contains the results of the following simple search on your database table dogs "select * from dogs".

Inside of your HTML file, instead of referencing a static xml source file you will create a servlet called GetDogXMLData that dynamically generates the xml data. This servlet will connect to your database and performs the previously discussed query and subsequently builds the XML file containing the data to be bound to your HTML document table. Make up your own XML tags that reflect the fields of the Dogs table. Use the main tag of DOGS and each data entry in the table refer to using the XML tag of DOG.

 

© Lynne Grewe