

def _meta_item_to_xml_string(self, meta_item_dict):
    xml_doc = minidom.Document()
    (item_key, item_value) = meta_item_dict.items()[0]
    item_node = self._meta_item_to_xml(xml_doc, item_key, item_value)
    xml_doc.appendChild(item_node)
    self._add_xmlns(item_node)
    return xml_doc.toxml('UTF-8')

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/common.py MetadataXMLSerializer._meta_item_to_xml_string/original