Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML exercise. UML Diagram CourseLectureSlide title teacher date title content.

Similar presentations


Presentation on theme: "XML exercise. UML Diagram CourseLectureSlide title teacher date title content."— Presentation transcript:

1 XML exercise

2 UML Diagram CourseLectureSlide title teacher date title content

3 Step 1 Create three Java classes Course, Lecture and Slide according the UML diagram Serialize a Course as an XML file (by using simple-xml) (in your example you should have one course with at least 3 lectures, and each lecture should have at least 2 slides - but beware that the number of lectures in a course and the number of lides in a lecture should be arbitrarili large!)

4 Step 2 Take the XML file you generated, and write a Java program that reads the file and prints on its stdout a set of triples: {course name, lecture name, slide title} (in this spet, you should be using JAXP)

5 Step 3 Write an XSL transformation that reads your XML file and generates the following web page: Title of the course Title of lecture 1 - n.slides for lecture 1 … Title of lecture 1 - n.slides for lecture n

6 Step 4 Run the XSL transfromation from within a Java program (use Jaxp)


Download ppt "XML exercise. UML Diagram CourseLectureSlide title teacher date title content."

Similar presentations


Ads by Google