handle xml