Sitemaps Generated Have "&" Entity Escaped into "&" in URLs

To obey XML and HTML protocols and standards, A1 Sitemap Generator makes sure all generated sitemaps are valid and entity escaped including the ampersand character "&".
Help: overview | previous | next

 To see all the options available, you will have to switch off easy mode 

 With options that use a dropdown list, any [+] or [-] button next to adds or removes items in the list itself 

Making Sure XML and HTML Documents Are Valid and Entity Escaped

There are many rules for XML documents and HTML files. While most internet browsers are forgiving, most sitemap validators are not.

This includes when submitting XML Sitemaps to Google. When building HTML and XML sitemap files, it is desired behavior that A1 Sitemap Generator entity escapes and convert the following characters when they occur in URLs, titles, descriptions etc:

  • & into &
  • < into &lt;
  • > into &gt;

Depending on the sitemap file type, this usually also includes:
  • " into &quot;
  • ' into &apos;

By doing this, all HTML Validators, XML Validators, internet browsers etc. can correctly parse URLs when you submit/view sitemap files.

  • When viewing XML sitemap files in internet browsers, they will usually show &amp; as the & ampersand character. To see the actual code of generated XML sitemaps, use text editor tools or view source in your internet browser.
  • You should not copy and paste URLs with converted & to &amp; into your internet browser address field. That will normally not work.

Information and references:
  • Official sitemaps protocol: entity escaping.
    • As with all XML files, any data values (including URLs) must use entity escape codes
  • Google webmaster support: general sitemap guidelines.
    • As with all XML files, any data values (including URLs) must use entity escape codes for the characters listed in the table below
  • W3C HTML4 document: character entity references.
    • Authors should use "&amp;" (ASCII decimal 38) instead of "&" to avoid confusion
    • "&amp;" represents the & sign.
This help page is maintained by

As one of the lead developers, his hands have touched most of the code in the software from Microsys.

If you email any questions, chances are that he will be the one answering them.
A1 Sitemap GeneratorAbout A1 Sitemap Generator

Build all kinds of sitemaps including text, visual HTML / CSS, RSS, XML, image, video, news and mobile for all your websites no matter the platform they use.
Share this page with friends   LinkedIn   Twitter   Facebook   Pinterest   Google+   YouTube  
 © Copyright 1997-2017 Microsys
 Usage of this website constitutes an accept of our legal, privacy and cookies information.