Does converting the symbol '&' to '&' in XML file affect the google search? -


i have generated xml sitemap, submit google search engine. while testing xml file in notepad++ , notepad looks perfect. while testing browsers google, ie, firefox, , edge either shows error or not display properly. in chrome found problem due & symbol. so, replaced & symbols &. browsers displayed properly. but, converted urls using & not works.

does changing & & affects sitemap, has submitted google search engine?

for example,

<?xml version="1.0" encoding="utf-8"?> <sitemapindex xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"               xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"               xsi:schemalocation="http://www.sitemaps.org/schemas/sitemap/0.9                                   http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd">     <sitemap>         <loc>http://www.example.com/about.php?course=physics&code=ptxui</loc>         <lastmod>2016-02-23t06:29:42+01:00</lastmod>     </sitemap> </sitemapindex> 

the above converted

<?xml version="1.0" encoding="utf-8"?> <sitemapindex xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"               xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"               xsi:schemalocation="http://www.sitemaps.org/schemas/sitemap/0.9                                   http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd">     <sitemap>         <loc>http://www.example.com/about.php?course=physics&amp;code=ptxui</loc>         <lastmod>2016-02-23t06:29:42+01:00</lastmod>     </sitemap> </sitemapindex> 

the second example (& &amp;) works fine in browsers. but, url invalid.

yes, affects google search.

it work, because valid xml, , in xml &amp; way represent & whether it's in uri or not.

without should not expect work.

but, url invalid.

note in xml <loc>http://www.example.com/about.php?course=physics&amp;code=ptxui</loc> uri given http://www.example.com/about.php?course=physics&code=ptxui. haven't turned valid uri invalid uri, you've turned doesn't exist because parsing xml fail before parsing has chance examine uri valid uri.

again, &amp; xml source way of representing &. if want xml indicate & want have &amp; in source.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -