{"id":243916,"date":"2025-08-06T06:53:29","date_gmt":"2025-08-06T06:53:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/xml-auto-fixer-for-sitemap\/"},"modified":"2026-03-16T08:20:32","modified_gmt":"2026-03-16T08:20:32","slug":"whitespace-fixer-for-xml-sitemap","status":"publish","type":"plugin","link":"https:\/\/es-uy.wordpress.org\/plugins\/whitespace-fixer-for-xml-sitemap\/","author":23136601,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.5","stable_tag":"1.0.5","tested":"6.9.4","requires":"5.2","requires_php":"7.2","requires_plugins":null,"header_name":"Whitespace Fixer for XML Sitemap","header_author":"Turbo Addons","header_description":"Automatically removes whitespace before XML declarations in WordPress sitemaps, RSS, and feed outputs to prevent 'XML declaration not at start' errors.","assets_banners_color":"c7effb","last_updated":"2026-03-16 08:20:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wp-turbo.com\/whitespace-fixer-for-xml-sitemap\/","header_author_uri":"https:\/\/turbo-addons.com","rating":5,"author_block_rating":0,"active_installs":200,"downloads":1167,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"turboaddons","date":"2025-08-06 10:46:11"},"1.0.1":{"tag":"1.0.1","author":"turboaddons","date":"2025-10-07 07:18:03"},"1.0.2":{"tag":"1.0.2","author":"turboaddons","date":"2025-10-20 06:02:19"},"1.0.3":{"tag":"1.0.3","author":"turboaddons","date":"2025-12-11 11:01:46"},"1.0.4":{"tag":"1.0.4","author":"turboaddons","date":"2026-02-09 09:39:09"},"1.0.5":{"tag":"1.0.5","author":"turboaddons","date":"2026-03-16 08:20:32"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":3},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3340090,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3340090,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3340162,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3340090,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3340090,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3340090,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"<p>Browser error message without the plugin (before fix)<\/p>","2":"<p>Browser error message without the plugin (before fix)<\/p>","3":"<p>XML sitemap loads cleanly after plugin activation (no errors)<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[906,29956,1557,27126,748],"plugin_category":[55],"plugin_contributors":[208790,232002,231858,231857,232003],"plugin_business_model":[],"class_list":["post-243916","plugin","type-plugin","status-publish","hentry","plugin_tags-error","plugin_tags-rss-feed-error","plugin_tags-sitemap","plugin_tags-whitespace","plugin_tags-xml","plugin_category-seo-and-marketing","plugin_contributors-rabiulalam01833","plugin_contributors-sharifok","plugin_contributors-siraji2017","plugin_contributors-turboaddons","plugin_contributors-wpanik","plugin_committers-turboaddons"],"banners":{"banner":"https:\/\/ps.w.org\/whitespace-fixer-for-xml-sitemap\/assets\/banner-772x250.png?rev=3340162","banner_2x":"https:\/\/ps.w.org\/whitespace-fixer-for-xml-sitemap\/assets\/banner-1544x500.png?rev=3340090","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/whitespace-fixer-for-xml-sitemap\/assets\/icon-256x256.png?rev=3340090","icon_2x":"https:\/\/ps.w.org\/whitespace-fixer-for-xml-sitemap\/assets\/icon-256x256.png?rev=3340090","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/whitespace-fixer-for-xml-sitemap\/assets\/screenshot-1.png?rev=3340090","caption":"<p>Browser error message without the plugin (before fix)<\/p>"},{"src":"https:\/\/ps.w.org\/whitespace-fixer-for-xml-sitemap\/assets\/screenshot-2.png?rev=3340090","caption":"<p>Browser error message without the plugin (before fix)<\/p>"},{"src":"https:\/\/ps.w.org\/whitespace-fixer-for-xml-sitemap\/assets\/screenshot-3.png?rev=3340090","caption":"<p>XML sitemap loads cleanly after plugin activation (no errors)<\/p>"}],"raw_content":"<!--section=description-->\n<p><strong>Whitespace Fixer for XML Sitemap<\/strong> is a lightweight plugin that automatically removes unwanted spaces or blank lines before the XML declaration (<code>&lt;?xml version=\"1.0\" ... ?&gt;<\/code>) in your WordPress output.<\/p>\n\n<p>https:\/\/youtu.be\/CvXXCGxMTqk?feature=shared<\/p>\n\n<p>This small whitespace, often caused by themes or plugins, breaks XML feeds and causes browser or validator errors like:<\/p>\n\n<p>XML declaration allowed only at the start of the document<\/p>\n\n<p>With this plugin activated, the output buffer is cleaned before anything is sent to the browser\u2014ensuring your sitemaps and RSS feeds are valid and readable by search engines like Google.<\/p>\n\n<p>\u2705 Works with:\n- Rank Math\n- Yoast SEO\n- Other Seo Tools\n- All themes and plugins<\/p>\n\n<ul>\n<li><a href=\"https:\/\/wp-turbo.com\/whitespace-fixer-for-xml-sitemap\/\">Live Demo<\/a><\/li>\n<\/ul>\n\n<p><strong>No settings page. No configuration. Just activate and forget.<\/strong><\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Automatically removes leading whitespace from XML output<\/li>\n<li>Fixes \"XML declaration not at start\" errors<\/li>\n<li>Works with Rank Math, Yoast, and other sitemap plugins<\/li>\n<li>Compatible with any WordPress theme or hosting<\/li>\n<li>Runs silently in the background<\/li>\n<\/ul>\n\n<h3>License<\/h3>\n\n<p>Whitespace Fixer for XML Sitemap is licensed under the <a href=\"https:\/\/www.gnu.org\/licenses\/gpl-2.0.html\">GNU General Public License v2 or later<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to the <code>\/wp-content\/plugins\/<\/code> directory, or install it via the WordPress Plugin Installer.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>That\u2019s it! Your sitemaps and feeds will now be clean and error-free.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20modify%20any%20content%20or%20database%3F\"><h3>Does this plugin modify any content or database?<\/h3><\/dt>\n<dd><p>No. It only buffers and cleans output whitespace before it reaches the browser. It doesn\u2019t store or alter data.<\/p><\/dd>\n<dt id=\"will%20this%20conflict%20with%20my%20seo%20plugin%3F\"><h3>Will this conflict with my SEO plugin?<\/h3><\/dt>\n<dd><p>Not at all. It is compatible with Rank Math, Yoast SEO, All in One SEO, SEOPress, and others.<\/p><\/dd>\n<dt id=\"what%20if%20i%20still%20see%20the%20error%20after%20activation%3F\"><h3>What if I still see the error after activation?<\/h3><\/dt>\n<dd><p>Ensure no theme or plugin is sending output (like <code>echo<\/code>, <code>var_dump()<\/code>, or spaces) before the plugin loads. Also, clear any caching and test again.<\/p><\/dd>\n<dt id=\"does%20it%20have%20any%20settings%20page%3F\"><h3>Does it have any settings page?<\/h3><\/dt>\n<dd><p>No. It's designed to be automatic. Activate and you\u2019re done.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Added more security and optimized the plugin structure.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Improved performance and update security.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Tested up to WordPress 6.9 to ensure full compatibility.<\/li>\n<li>Updated internal hooks for better stability with the latest WordPress core changes.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Improved performance by reducing unnecessary output buffering.<\/li>\n<li>Refactored core cleanup logic for cleaner and more reliable XML output.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Improved output sanitization to enhance overall security and prevent unwanted data leakage.<\/li>\n<li>Added stricter header validation before applying whitespace cleanup for safer XML response handling.<\/li>\n<li>Optimized output buffer handling to ensure better compatibility with caching and SEO plugins.<\/li>\n<li>Improved performance and reduced risk of accidental whitespace removal in non-XML outputs.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Automatically removes whitespace before XML declarations<\/li>\n<\/ul>","raw_excerpt":"Fixes XML declaration errors in sitemaps and RSS by removing leading whitespace. Just activate, no setup required.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/243916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=243916"}],"author":[{"embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/turboaddons"}],"wp:attachment":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=243916"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=243916"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=243916"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=243916"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=243916"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=243916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}