protected function getHeaderByFlag()
{
$namespaces = array('video' => 'xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"', 'image' => 'xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"');
$result = '';
foreach ($this->headers as $flag) {
$result .= ' ' . $namespaces[$flag];
}
return $result;
}