Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

XML Parsing Error in Redirector Page Link


4 Posts   2615 Views


18 November 2009 at 9:43am (Last edited: 18 November 2009 9:44am), Community Member, 33 Posts

I've created a redirector page. The page that it should go to is

When I test the page I receive an error message pointing to the second "equal" symbol in the link.

XML Parsing Error: not well-formed
Line Number 73, Column 98:             
<li class="link"><a href="

Is there any work around for this? is a legitimate working page.

Thanks in advance!


19 November 2009 at 3:06pm Community Member, 283 Posts

The problem is in the code being generated (and strict handling of content by your browser). It is being parsed as XHTML and second equal sign in an attribute is illegal. You will need to fall back to plain old HTML in order to allow a modern browser to not throw that error, or figure out a clever way to not use 2 equal signs in a link.

You can try appending forceFormat=html to your URL query string to disable XHTML output as another option.


21 November 2009 at 5:29am Community Member, 33 Posts

dalesaurus, thank you for your reply. Can you expand more on the forceFormat=html? Do you mean to simply add that string to the end of the url in my redirector page like this?



21 November 2009 at 10:51am Community Member, 283 Posts

No, that won't work because it is a function of SilverStripe. That URL you posted is to your ecommerce system (whatever software ecommerce.cgi is). I'm not sure how you have integrated the two, but I do know that your site is sending XHTML as the headers/Doctype and your ecommerce engine is returning plain old HTML 4.01 code.

That mixture won't fly on modern browsers, as you're seeing.