add the decode xml method