XML-based programming