XMLC Generated Objects
XMLC Objects are manipulated using the DOM API as well as element
access methods generated by XMLC. Dynamic data is set in the DOM
object tree and finally an HTML page is generated from that tree:
On execution of the run() method this will send back a page saying
something like: Hi there, the local time is Sun Nov 5 14:25:00 CET
and Class Constants
constants will be generated for each element name and class name.
The use of string constants when calling DOM routines to locate
elements ensures that a valid element is specified.
constants are used when accessing the DOM, for example:
is an interesting case of moving a well-known concept from one domain
to another, in this case from browsers to servers.
described method works for all XML document types, including Wireless
Markup Language (WML). Using this approach makes it easy to serve
different clients the same kind of dynamic content by simply replacing
the HTML resources with WML pages. Why not give it a try on your
Java-enabled Web Server?