Working on automatic xml generation