def xml_response(doc):
    """XML response serializer"""

    LOGGER.debug('Serializing XML response')
    pywps_version_comment = '<!-- PyWPS %s -->\n' % __version__
    xml = lxml.etree.tostring(doc, pretty_print=True)
    response = Response(pywps_version_comment.encode('utf8') + xml,
                        content_type='text/xml')
    response.status_percentage = 100;
    return response
dataset/ETHPy150Open geopython/pywps/pywps/app/basic.py/xml_response/original