Update: The XML form builder is now live on the site, it can been seen here.
The decorator for the text form object has now been completed, the forms are drawn using divs, below is an outline of how a single form element is structured, as you can see there are three divs, each of which can have an independent class, style and id.
The updated XML structure for the text type is in the image below.
Although there are several elements for the text field, not all are mandatory, the builder informs you if any required information is missing.
In addition to being able to control every property in the XML file, you can also override the settings at runtime using any of the many public setting methods on the form builder. The following can all be overridden at runtime if required, element value, id, disabled setting, readonly setting, class and style, for each container div you can override the id, class and style.
The override methods are generally used to preset values (edit pages) and highlight elements after failed validation, I figured though that why limit it now, there was no harm in adding overrides for everything.
The original form builder required two XML files per form, one for form structure and another for the validation, the two will be combined in this version of the builder, once I have added all the types to the form builder I will start the validation system, as per params, the validation rules will be able to be set in the XML file and at runtime.