netDon.com - the enlightenment of wed Design. be enlightened
Web Design
Price Quotes
Web Hosting
Free Wallpaper
DHTML Tips
HTML Tips
JavaSrcipts
About Us
F.A.Q.
Contact Us
Home Page
Free Price Quote!
Check Your
E-mail

 More About DHTML
     XMLC Development
     Compiling HTML
     XMLC Generated

African Beauty
For the Ladies
Fast Cars
Beautiful Women
SiFi & Comics
Beyonce

 

 
Dynamically generating HTML pages with XMLC

Compiling HTML Pages

The xmlc command is used to run XMLC. It parses an HTML page and normally creates a Java class than contains a DOM representation of that object.

The XMLC compilation process is straight forward, with only a class name, output directory and a HTML file normally required as parameters. For example:

xmlc -d classes -class sample.Hello hello.html would generate an XMLC class named sample.HelloHTML from a HTML file hello.html and writes the resulting class file under the directory classes. The HTML page could look like this:

Generated Document Class

The xmlc command compiles the document into a Java class:

In addition to the standard DOM document access method, the generated class will contain a get method for each element that contains an identifier attribute.

For HTML documents, this is the id attribute, valid for almost all tags. With XML documents, these are all attributes declared to be type ID in the DTD.

The get method will be named in the form getElementIdname. With the first character of the id being shifted to upper case to conform to the Java convention. The return type will be the DOM class that represents the element.

For span tags, a set method is generated for replacing the text inside the span element with the passed in argument.

 More About DHTML
 XMLC Development
Compiling HTML
XMLC Generated

 More About DHTML
     XMLC Development
     Compiling HTML
     XMLC Generated

SPONSORS

African Books

Free Price Quote!

Browse Subjects



Home Page
Tell A Friend!
Your Name:

Your E-mail:

Friend's E-mail:

Comments:

Receive copy:  

 
Check Your
E-mail
About Us Price Quote Contact Us
Copyright © 2005 netDon
info@netDon.com