devide xml method