Highlight Content, Not the Markup

The problem is that it highlights misspelled words included in XML tags instead of their content. To make Vim highlight spelling errors in the text, enter

:syntax spell toplevel

To make :syntax spell toplevel start automatically at Vim start, create the ~/.vim/after/syntax/xml.vim file and add the following line:

syntax spell toplevel