Header Ads

The reference to entity "max-results" must end with the ';' delimiter (solution)

The reference to entity "max-results" must end with the ';' delimiter (solution)

Step 1
As you have not done this, the parser is trying to parse the following data as if it were an entity reference, which it is not. That is why it fails to parse - it can't find the semi-colon at the end of the entity reference because it's not supposed to be an entity reference.
For instance, where you have:


http://memoryhunt.blogspot.in/search/label/Quotes&max-results=7&max-results=7
You should have:
http://memoryhunt.blogspot.in/search/label/Quotes;max-results=7;max-results=7
or can have this also
http://memoryhunt.blogspot.in/search/label/Quotes





step 2
That's because & is a reserved character in XML that means "an XML entity begins here". XML entities let you print characters or sequences of characters that are hard for you to embed in your document literally, either because you don't have it on your keyboard or because the document encoding forbids it. For instance, in (X)HTML, &eacute; prints the character "é", which is not easy to find on most US keyboard. (Available entities depend on the <!DOCTYPE> declaration of your XML document.)
The problem with that scheme is that it means you can't unambiguously leave literal & characters around your document if they can be the start of an entity, so you need to encode them as an entity to solve that problem.
You will need to replace all your stray & with &amp;, which will print & without angering the XML parser. In your case, you should be good with replacing &subset= by &amp;subset= in your two <link> tags.

3 comments:

  1. THANK YOU SO MUCH IT'S SOLVE NOW, I FACE THIS PROBLEM MANT TIME'S AND I WAS TOO WORRED ABOUT IT. THANK YOU

    ReplyDelete

sanipun. Powered by Blogger.