def models_to_xml(self, model_name, model_handler, models,
                      list_props=None):
        blob_info_format = self.get_query_param(QUERY_BLOBINFO_PARAM,
                                                QUERY_BLOBINFO_TYPE_KEY)
        include_props = self.get_query_param(QUERY_INCLUDEPROPS_PARAM)
        if(include_props is not None):
            include_props = include_props.split(",")

        impl = minidom.getDOMImplementation()
        doc = None
        try:
            if is_list_type(models):
                doc = impl.createDocument(None, LIST_EL_NAME, None)
                list_el = mark_list_node(doc.documentElement)
                if((list_props is not None) and
                   (QUERY_OFFSET_PARAM in list_props)):
                    list_el.attributes[QUERY_OFFSET_PARAM] = (
                        list_props[QUERY_OFFSET_PARAM])

                for model in models:
                    model_el = append_child(list_el, model_name)
                    model_handler.write_xml_value(
                        model_el, model, blob_info_format, include_props)
            else:
                doc = impl.createDocument(None, model_name, None)
                model_handler.write_xml_value(doc.documentElement, models,
                                              blob_info_format, include_props)

            return self.doc_to_output(doc)
        finally:
            if doc:
                doc.unlink()
Construct a REAL.
dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/Dispatcher.models_to_xml--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/dialects/drizzle/base.py/REAL.__init__