WordPress removes namespace part from my tags in RSS feed

Found a fix to the problem

simply, place ob_end_flush(); at the top of the script, and WordPress will no longer be
able to catch the output of the script, and won’t be able to do anything funny with it. It also seems to stop the page being cached, which is fine by me.