<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml">
<?php
$langs=['en','de','fr','zh','ja','ru','nl','it','es','ko','ar','he','bn','ms','si','ta'];
$base='https://booking.iwayrentacar.com';
$pages=[
    ['/',1.0,'daily'],
    ['/search.php',0.9,'daily'],
    ['/blog.php',0.8,'weekly'],
    ['/register-vehicle.php',0.7,'monthly'],
];
foreach($pages as [$url,$pri,$freq]):
?>
  <url>
    <loc><?=$base.$url?></loc>
    <changefreq><?=$freq?></changefreq>
    <priority><?=$pri?></priority>
    <?php foreach($langs as $lang): ?>
    <xhtml:link rel="alternate" hreflang="<?=$lang?>" href="<?=$base.$url.(strpos($url,'?')===false?'?':'&amp;')?>lang=<?=$lang?>"/>
    <?php endforeach; ?>
    <xhtml:link rel="alternate" hreflang="x-default" href="<?=$base.$url?>"/>
  </url>
<?php endforeach; ?>
</urlset>
