utils: record_xml_output fix.