我收到一個 XML 決議錯誤:
無法決議任何 XML 輸入。第 5 行錯誤:對物體的參考
utm_medium必須以分隔符結尾;。&你很可能忘記逃到&
使用以下內容,錯誤出在xhtml:link標簽 URL 上,我嘗試更改&為,&但它不起作用。
<?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">
<url>
<loc>https://www.com/financing/?utm_source=website&utm_medium=banner&utm_campaign=YBF&utm_id=Yellow Bar Financing</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://www..com/financing/?utm_source=website&utm_medium=banner&utm_campaign=YBF&utm_id=Yellow Bar Financing" />
<lastmod>20015-04-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
<xml>
uj5u.com熱心網友回復:
&utm_medium您錯過了下一行的另一個字符,以及同樣&必須更改為的其他幾個字符&。
這是您的 XML,所有內容都已&正確替換:
<?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">
<url>
<loc>https://www.com/financing/?utm_source=website&utm_medium=banner&utm_campaign=YBF&utm_id=Yellow Bar Financing</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://www..com/financing/?utm_source=website&utm_medium=banner&utm_campaign=YBF&utm_id=Yellow Bar Financing" />
<lastmod>20015-04-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
上面的 XML 現在格式正確。
請注意,至少在您發布的 XML 中,<xml>檔案末尾有多余的打開標記。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/442380.html
