@classmethod
def from_wfs_element(cls, feature, namespace):
    """Build `Sondering` instance from a WFS feature element.

        Parameters
        ----------
        feature : etree.Element
            XML element representing a single record of the WFS layer.
        namespace : str
            Namespace associated with this WFS featuretype.

        Returns
        -------
        sondering : Sondering
            An instance of this class populated with the data from the WFS
            element.

        """
    s = cls(feature.findtext('./{{{}}}fiche'.format(namespace)))
    for field in cls.get_fields(source=('wfs',)).values():
        s.data[field['name']] = cls._parse(func=feature.findtext, xpath=
            field['sourcefield'], namespace=namespace, returntype=field.get
            ('type', None))
    return s
