def handle_dateTypeFormatted(self, element):  # noqa
        # name="dateTypeFormatted"
        #   <xsd:simpleContent>
        #     <xsd:extension base="dateType">
        #       <xsd:attribute name="format" type="xsd:string" /> // from
        #                                        java.text.SimpleDateFormat
        #       <xsd:attribute name="type" type="dateEnumTypes" />
        #     </xsd:extension>
        #
        type_name = "dateTypeFormatted"
        valid_attrs = self._date_type_formatted_valid_attrs()
        val = {}
        for attr in element.attrib:
            if attr not in valid_attrs:
                log.warning("%s is not a valid attribute for %s", attr,
                            type_name)
            else:
                val[attr] = element.attrib[attr]

        val["value"] = element.text

        return val
dataset/ETHPy150Open Unidata/siphon/siphon/metadata.py/_ComplexTypes.handle_dateTypeFormatted/original