When I search, the number one Google result for encoding ampersands in xml
is:
How do I escape ampersands in XML so they are rendered as entities in HTML?
That's great, but look at the question:
How do I escape ampersands (&) in XML? I tried
&
but this isn't allowed.
Wait what? That is how you escape ampersands in XML. And not allowed how?
Then look at the answer:
&
will result in&
when rendered. Which will result in&
if rendered again...
This doesn't answer the question directly, which I suppose isn't possible, but it doesn't even explain that the question is malformed.
It looks like the questioner got the knowledge they were seeking (perhaps there was some double-encoding going on), but this is a poor, confusing way to convey information to others.
This question is popular-- 450,135 views-- and was protected in 2011. And it's probably feeding on its own popularity by getting more upvotes. So our question ranking system is pouring points into what is really a poor question and a merely average answer.
Is there a way we can make this better?