'Converts a child of the current dom element to the specified type.'

@staticmethod
def _fill_instance_child(xmldoc, element_name, return_type):

    xmlelements = _MinidomXmlToObject.get_child_nodes(xmldoc, _get_serialization_name(element_name))
    if (not xmlelements):
        return None
    return_obj = return_type()
    _MinidomXmlToObject._fill_data_to_return_object(xmlelements[0], return_obj)
    return return_obj
