main to xmlttk