Hi, I currently and attempting to create a google sitemap for a phpnuke site. I get the following message, The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A semi colon character was expected. Error processing resource 'http://www.metalthrone.net/sitemap.xml'. Line 90, Position... <loc>http://www.metalthrone.net/modules.php?name=Content&pa=showpage&pid=1</loc> -------------------... Code (markup): Now apparently i need to turn every & into an & Does anyone know how this could be done, in order to make the bots point to the correct link, and also, so i dont have to manually change over 30000 links in a sitemap? Thanks in advance.
Yes may be your coding is correct there is an error in metalthrone.net use some other site providing xml and then check.
every & in xml apparently introduces something, which causes xml to look for the concluding ; I have over 30k links all with & in them. If i delete one link, line 90 turns into line 91 with the error. Im sorry i dont know much about this(probably confusing you all), just a little here and there and from what ive read. Thanks
There is problem with & in <loc>http://www.metalthrone.net/modules.php?name=Content&pa=showpage&pid=1</loc> replace all & with &. May be this can correct the problem
Is there no quicker way?? lol there are over 60 thousand of those in the code? not just the one line? I have been using the online sitemap generators and none of them seem to have a way around this? Cheers.
Whenever you are fetch the data and creating xml just run a preg_replace function to change & to & that will solve the problem.
<?php echo htmlentities('your original data'); ?> PHP: Content for xml files ( which is what sitemaps are ) always needs to be encoded in this way.
Joe, welcome back buddy, When I saw this thread I knew , you would be the one to answer! to the op: This guy knows his shit op, Listen to him