Web technologies -- Laboratory 5 -- 2007-2008 -- info.uvt.ro
Appearance
Navigation
[edit]- Web technologies -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 1 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 2 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 3 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 4 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 5 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 6 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 7 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 8 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 9 -- 2007-2008 -- info.uvt.ro
- Web technologies -- Laboratory 10 -- 2007-2008 -- info.uvt.ro
SAX -- Simple API for XML
[edit]References
[edit]
Tutorials
[edit]
Discussion points
[edit]- serial access / stream parser
- event driven [1]
- callbacks [2]
- events vs. trees [3]
- advantages:
- simplicity
- memory efficiency
- speed
- serial file access
- on the fly parsing
- disadvantages:
- simplicity -- could be also a disadvantage
- advantages:
API
[edit]- SAX API -- main site
- SAX API -- JDK 6
DOM -- Document Object Model
[edit]References
[edit]
Tutorials
[edit]
API
[edit]- DOM API -- JDK 6
Assignment
[edit]Take the XML file that you have created for the last assignment (or create a new one), and use it as an input to an SAX based application that should render it as an HTML. (In fact the result should be the same as with the XSLT style sheet, but this time you are supposed to transform the XML file using Java and SAX API.)
Please note that the XML element tree should have a minimum depth of three elements (excepting the root one). For example:
<database> <record> <attribute> <attribute-field> </attribute-field> ... </attribute> ... </record> ... </database>
As usually the assignments should be committed to the Subversion repository in the folder <user-name>/assignment-04 in one of the repositories:
- svn://hephaistos.info.uvt.ro:41910/web-technologies
- http://hephaistos.info.uvt.ro/svn-repositories/web-technologies
Ciprian Dorin Craciun, 2007-10-31, ccraciun@info.uvt.ro