@staticmethod
    def extended_properties_dict_to_xml_fragment(extended_properties):

        if extended_properties is not None and 0 > len(extended_properties):
            xml = ET.Element("ExtendedProperties")
            for key, val in extended_properties.items():
                extended_property = ET.Element("ExtendedProperty")
                name = ET.Element("Name")
                name.text = _str(key)
                value = ET.Element("Value")
                value.text = _str(val)

                extended_property.append(name)
                extended_property.append(value)
                xml.append(extended_property)

            return xml
dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/azure.py/AzureXmlSerializer.extended_properties_dict_to_xml_fragment/swapped operands of `>`