Professional Documents
Culture Documents
Develop static pages (using Only HTML) of an online book store. The pages should
a. Home page
d. Books catalog
e. Shopping Cart
g. Order Conformation
home.html
<html>
</frameset>
</frameset></html>
header.html
<html>
<head><title>HEADER</title></head>
<body bgcolor="lightpink">
</font></marquee><br>
</font></center></body>
</html>
menu.html
<html><head> <title>MENU SECTION</title></head><body BGCOLOR="skyblue">
</tr></table></body></html>
sidemenu.html
<html>
</body>
</html>
footer.html
<html>
<head>
<title>footer</title>
</head>
<body bgcolor="pink">
</body>
</html>
reganduserlogin.html
<html>
<head>
<title>Registration Form</title>
</head>
<body bgcolor="lightyellow">
<form action="content1.html">
<body bgcolor="lightyellow">
<a href="content1.html">HOME</a><br><br>
First Name:G<br>
Last Name:ARUN<br>
EmailId:arunk766526@gmail.com<br>
Address:ECIL-HYDERABAD<br>
Mobile No:9999123412<br>
Gender:MALE <br></body></html>
catalogue.html
<html>
<head>
</head>
<body bgcolor="lightyellow">
<a href="content1.html">HOME</a><br><br>
<form action="ordercon.html">
<tr>
<td>
</td>
<td> Book: Web Technologies <br> Author: Uttam K. Roy <br> Publication:Oxford
<tr>
<td> Book: PHP & MySQL Web Development <br> Author:Luke Welling & Laura
</table> </form>
</body> </html>
payment.html
<html>
<head><title>PAYMENT</title></head>
<body bgcolor="lightyellow">
<a href="content1.html">HOME</a><br><br>
<form name="myform">
<div align="center"><pre>
</div>
<br><br>
<div align="center">
</form>
</body>
</html>
ordercon.html
<html>
<head><title>order conformation</title></head>
<body bgcolor="lightyellow">
<center>
<pre><strong>
<b>Your order Is Conformed
</strong></pre>
<h2><b>THANK YOU...Visit Again</h2>
</center>
</body>
</html>
cse.html
<html> <head><title>CSE</title></head>
<option value="C&Ds">C&Ds
<option value="Ads">Ads
<option value="Java">Java
<option value="Oracle">Oracle
<option value="MySql">MySql
</select> </td></tr>
<tr> <td>Quantity</td>
</table> <center> <pre> Cost of one book is"500" + shipping "100" </pre>
</ul> </h2>
</body> </html>
eee.html
<html> <body bgcolor="Plum">
<li>Electrical Power</li>
emp.xml
<employees>
<employee id="111">
<firstName>Amar</firstName>
<lastName>chandra</lastName>
<location>India</location>
</employee>
<employee id="222">
<firstName>Arun</firstName>
<lastName>kumar</lastName>
<location>Canada</location>
</employee>
<employee id="333">
<firstName>Bala</firstName>
<lastName>Kiran</lastName>
<location>Ukraine</location>
</employee>
<employee id="444">
<firstName>Bhanu</firstName>
<lastName>Chandra</lastName>
<location>India</location>
</employee>
<employee id="555">
<firstName>Cyril</firstName>
<lastName>Kumar</lastName>
<location>Russia</location>
</employee>
<employee id="666">
<firstName>Dharani</firstName>
<lastName>Mathew</lastName>
<location>UK</location>
</employee>
<employee id="777">
<firstName>Jagadesh</firstName>
<lastName>Chandra</lastName>
<location>Norway</location>
</employee>
<employee id="888">
<firstName>Vishnu</firstName>
<lastName>vardhan</lastName>
<location>Russia</location>
</employee>
<employee id="999">
<firstName>David</firstName>
<lastName>Feezor</lastName>
<location>USA</location>
</employee>
<employee id="1000">
<firstName>Sunder</firstName>
<lastName>Feezor</lastName>
<location>Canada</location>
</employee>
</employees>
ReadXML.java
import org.w3c.dom.*;
import javax.xml.parsers.*;
import java.io.*;
import java.util.Scanner;
//Build Document
document.getDocumentElement().normalize();
String id=s.next();
if (node.getNodeType() == Node.ELEMENT_NODE)
if(eElement.getAttribute("id").equals(id)){
System.out.println("Location:"
+eElement.getElementsByTagName("location").item(0).getTextContent());
Output: