Disclosed is a system, method, and program for generating an interface to
elements in a document. The document defines a relationship of the
elements and at least one attribute for each element. A class is
generated for at least one element to implement methods from information
provided on elements in the document and a mapping indicating at least
one element in the document to map to a class. The at least one indicated
element in the document for which the class is generated can be accessed
and affected by the methods implemented in the class.