Resuming xmlc and the Development Phase

We now want to take the source tree, represented as a DOM class, instantiate it as an object and massage it with dynamic content created by Java logic. When completed, we then turn it into a result tree that can be returned as an updated presentation screen.

The XMLC compilation provides us with direct access methods for getting to the areas of the DOM that we are most interested in. Keying off the id attributes that we assigned early, XMLC generates the following set of convenience methods for our working example:

 public org.w3c.dom.html.HTMLImageElement getElementEventLoginLogo() public org.w3c.dom.html.HTMLTableCellElement getElementLoginErrorMsg() public org.w3c.dom.html.HTMLImageElement getElementLoginErrorStopSign() ...

Get Enhydra XMLC™ Java™ Presentation Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.