XML-based form creation