add xml methods