def post_xml(url, xml, timeout=30):

    LOGGER.info('Executing HTTP POST request %s on server %s', xml, url)

    from owslib.util import http_post
    try:
        with open(xml) as f:
            return http_post(url=url, request=f.read(), timeout=timeout)
    except Exception as err:
        raise RuntimeError(err)
Convert a Python type to a MongoDB-compatible type.
dataset/ETHPy150Open geopython/pycsw/pycsw/core/admin.py/post_xml--crossover with--dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/base/fields.py/ComplexBaseField.to_mongo