accept XML, decode & recode and return