XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

advertisement
 Resource Guide -> XML and Java Tutorials -> Dynamically generating HTML pages with XMLC

Dynamically generating HTML pages with XMLC

Date: Nov. 9, 2000
Link: http://webreference.com/xml/column23/
Source Author or Organization: WebReference.com

This is a tutorial on an alternative method to both Active Server Pages (ASP) and Java Server Pages (JSP) for serving dynamic HTML. The method employs an XML Compiler (XMLC), an object-oriented mechanism for creating dynamic content from static HTML and XML documents.

XMLC is available individually or as part of the Enhydra product (a Java-based object-oriented Web application development environment available from Lutris).

XMLC converts an HTML or XML file into a compiled Java class that serves a page as if it were still written in HTML, via Java servlets. XMLC analyzes the HTML according to the W3C Document Object Model (DOM), using the DOM to create Java-based references to all the HTML document elements. The DOM-based object model can then be manipulated by the developer.

Many developers are now familiar with the DOM model in the browser, and using JavaScript or VBScript to manipulate the exposed HTML document. XMLC yields the exact same model on top of Java servlets.