O'Reilly logo

Enhydra XMLC™ Java™ Presentation Development by David H. Young

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required