XML solved but ugly