update convert array to xml

change element name key_N to a proper one