As the usage of classic web forms written purely in HTML rises, their capabilities become insufficient. So the
technology, the new forms based completely on the XML format, was created. There are several studies of how to automate the process of creating XForms if there exists a schema against which the form will be validated. This paper presents a new method of
using the XHTML as the host language for generated forms. The proposed algorithm is based on traversing the input XML schema and generating the XForms form in two phases. We prove the feasibility of this concept with the implemented XForms editor.