Code:
Procedure OnClick
    Handle hoXml hoRoot hoElement
    Get Create (RefClass(cXMLDOMDocument)) to hoXml
    Get CreateDocumentElement of hoXml "urlset" to hoRoot
    Send AddAttribute of hoRoot "xmlns" "http://www.sitemaps.org/schemas/sitemap/0.9"
    Get AddElement of hoRoot "url" "" to hoElement
    Showln (psXML(hoXml))
End_Procedure
Result:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url xmlns=""></url></urlset>
Expected, as i VDF 15.0:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url></url></urlset>
If I don not add the xmlns attribute to the root element, then the result is as expected. The problem seems to be limited to the child, or the first child, element(s) of the document root. Other elements are not affected, it seems.

The problem now is that this change breaks the XML Transformation, using XML Stylesheet, for my sitemap. It may also annoy Google, which is very strict on the XML format, even if it's valid. And I really can't see the need for this empty xmlns attribute.

I have never seen any XML document adding the default namespace as an empty xmlns token, even if this technically may be ok.

My workaround:
Code:
Get psXml of hoXML to sXml
Move (Replaces(' xmlns=""','',psXml(hoXml))) to sXml
I already have this replacement:
Code:
Move (Replace('version="1.0"',psXml(hoXml),'version="1.0" encoding="UTF-8"')) to sXml
because VDF will not let me add the encoding attribute to my xml processing instruction, as long as the enconding is UTF-8. It's not technically needed but Google demands it.

I fear this has to with the MSXML components, which I understand is updated in VDF 15.1. Any hope of getting this fixed?