The XML Form API module generates Drupal forms from an XML definition. It also allows for the creation and editing of XML documents via Drupal forms.
Islandora.ca modules: