NOTE:
These slides have not been updated since 2003. They have been superseded by the book
Anders Møller and Michael Schwartzbach, February 2006 |
INTERACTIVE WEB SERVICES WITH JAVA |
An XML object corresponds to an XML fragment possibly containing named gaps.
The XML class offers the following features:
A template constant is written as:
[[ <table border="0" cellspacing="0"> <tr><td align="left"> <a href=[js]> <img border="0" src="http://www.brics.dk/~mis/file.gif"/> </a> </td></tr> <tr><td align="left"> <[name]> </td></tr> </table> <[rest]> ]] |
Templates are plugged by writing, for instance:
options = options<[rest=templateOption<[inx=versionInx(contents[i]), date=versionDate(contents[i])] ]; |
This is different from JDOM documents in the following ways:
- and different from Servlets in the following ways:
COPYRIGHT © 2002-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH |