January 2002
Intermediate to advanced
504 pages
11h 24m
English
When XMLC compiles a markup page into a DOM class or template, it generates an intermediate Java source file that contains the logic that is compiled into the Java class. The xmlc command option -keep instructs xmlc to leave the Java source file behind.
HTML Tidy parses the input markup file. XMLC then generates the DOM-building logic, using either the Xerces or the LazyDOM APIs. LazyDOM is the default parser. When the compiled DOM class is loaded during runtime execution, the Xerces or LazyDOM builds the DOM in memory.
Let's take a look at an extremely simple HTML source file and portions of the DOM-building Java source code assembled by the xmlc command:
<html> <body> <p>Hello World </body> </html>
You'll invoke ...
Read now
Unlock full access