Missing xmlns:image even \Image sub-element was used in sitemap
fruit opened this issue · 3 comments
fruit commented
Hi there!
Maybe I'm wrong... here is an example which generates 2 <url>
tags with additional Image
and Link
parts. The resulting XML does not contains an expected namespaces xmlns:xhtml
and xmlns:image
.
But if you change the order of adding (addUrl
) urls to Urlset
:
$urlSet->addUrl($urlB);
$urlSet->addUrl($urlA);
All will be fine, the missing namespaces appears in the output file.
ThePixelDeveloper commented
Thanks for the report, going to take a look at this further.
tmihalik commented
+1
Dicebar commented
+1