I have seeing many of you dealing with this error.
I spent hours reading and trying to figure out what was the problem.
These are my findings ...
Example code. (ERROR)
Using Eclipse (I didn't test with another IDE) the Ctrl+Shift+F command will indent your code, but for some reason this breaks the xml
We are interested in this specific line
And should be
Hope it helps you.