Skip to main content

CS8661 - Internet Programming Lab - Experiment 8

Experiment 8 Problem Statement

Write programs in Java to create three-tier applications using servlets for conducting online examination for displaying student mark list. Assume that student information is available in a database which has been stored in a database server.

XML DOCUMENT VALIDATION, PARSING AND XSLT PROCESSING

AIM

To write an XML program to create 10 student details and to validate using DTD and to parse the document using DOM PARSER and to transform the given XML document into HTML page using XSLT processing.

ALGORITHM

  1. Create an XML document "Student.xml" and enter 10 student details in it.
  2. Generate the DTD by right clicking on the "Student.xml" and selecting Generate DTD.
  3. Validate the given XML document using the generated DTD by right clicking on the "Student.xml" and selecting Validate XML.
  4. Create a DOM Parser for parsing the given XML document.
  5. Extract particular student details, given the rollno using DOM Parser.
  6. Convert the given XML document into HTML webpage using XSLT style sheet ("Student.xsl")

Program

Experiment 6 - XML DOCUMENT VALIDATION, PARSING AND XSLT PROCESSING