Adapting XMLGUI