sitemap - Whitespace between elements (closing tags and opening tags) in XML? -


i have xml sitemap. need white space between closing tag , opening tags? e.g. should this:

/>< 

actually :

/> < 

or both okay?

here's example of block of code without spaces:

<?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>http: //www.ospreyeurope.com/che_de/hiking/tempest-series</loc><lastmod>2016-07-20</lastmod><changefreq>daily</changefreq><priority>0.5</priority><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/eu_en/hiking/tempest-series" hreflang="en" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/che_de/hiking/tempest-series" hreflang="de-ch" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/che_fr/hiking/tempest-series" hreflang="fr-ch" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/che_it/hiking/tempest-series" hreflang="it-ch" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/be_fr/hiking/tempest-series" hreflang="fr-be" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/dk_en/hiking/tempest-series" hreflang="en-dk" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/de_de/hiking/tempest-series" hreflang="de-de" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/es_es/hiking/tempest-series" hreflang="es-es" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/fi_en/hiking/tempest-series" hreflang="en-fi" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/fr_fr/hiking/tempest-series" hreflang="fr-fr" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/ie_en/hiking/tempest-series" hreflang="en-ie" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/it_it/hiking/tempest-series" hreflang="it-it" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/lu_fr/hiking/tempest-series" hreflang="fr-lu" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/nl_en/hiking/tempest-series" hreflang="en-nl" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/no_nb/hiking/tempest-series" hreflang="nb-no" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/at_de/hiking/tempest-series" hreflang="de-at" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/se_sv/hiking/tempest-series" hreflang="sv-se" /><xhtml:link rel="alternate" href="http://www.ospreyeurope.com/gb_en/hiking/tempest-series" hreflang="en-gb" /></url> 

xml allows white space appear between elements; it's applications define whether such whitespace significant. in case of sitemaps, such whitespace insignificant.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -