Towards Valid XML Applications

Many WWW applications generate H TML or XML documents dynamically. Current tools, however, like languages using D OM or JAVA Server Pages do not allow to check the validity of the generated documents statically. Instead, validity has to be “checked” dynamically by appropriate test runs. This paper addresses this problem by introducing a new distinct class for each element type of a D TD. Each class extends the Element-class of the Document Object Model (D OM). The resulting object model is called Validating DOM (V-DOM). Parametric XML (P-XML) is an extension of XML allowing to insert values of the newly defined classes in places where the corresponding element types are allowed according to the underlying D TD. Like V-DOM, P-XML guarantees the validity of all X ML documents generated by using P-X ML. V-DOM and P-XML are illustrated by several examples.