XML Processing with SAX and Simple Api

Last modified by Anca Luca on 2010/05/13 10:46

Reference

Practice

Before trying your hand at these exercises, read the course and the examples at http://www.infoiasi.ro/~busaco/teach/courses/web/web-film.html#s10.

Also, think of implementing these exercises in the context of your own project, where they match purpose (or proposed feature can be slightly adjusted to fit).

Imported reviews (SAX)

Implement the import function for the review application, from the format proposed at the exported reviews exercise from lab 6, using SAX XML processing. It should receive an XML file storing the exported reviews, process it and extract the data to store in the application format (RDBMS or other). Before importing the data, make sure that they respect the required format, by performing validation on the data. Which of the two paradigms is more suitable for this task, DOM or SAX?

Extrapolate this requirement to any XML data format used in your project, standard or non-standard.

Exported reviews

For the exported reviews exercise from lab 6, write the function to actually export the data in an XML file.

Extrapolate this requirement to any XML data format used in your project, standard or non-standard.

Feeds generator

Write the code that generates a feed for the recent news (or any other data needed to be syndicated) in your project. What is the approach you used? (transformed XML or directly from data?)

XML Binding *

Experience with the XML binding paradigm: for an XML data format used in your project, write the schema that would generate types from XML and load an object / a collection of objects from XML data.

Tags:
Created by Anca Luca on 2010/05/13 00:26

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 2.2.1.27354 - Documentation