add xml method