Fixed bug in xml_to_dr: use decode.