            node = self.scenario['nodes'][node_osmid]
            # node_id_map[node['id']]=node_osmid
            etree.SubElement(node_set, 'node', {
                'id': str(node_osmid),
                'x': '{:f}'.format(node['x']),
                'y': '{:f}'.format(node['y'])
            })
            node_id += 1

        # link_id_map = {}
        link_set = etree.SubElement(network, 'links')
        # link_id = 0
        for link_osmid, link in self.scenario['links'].items():
            # link_id_map[str(link['id'])] = link_id