Adding text to an XML element and the diagnostic "Element 'server' cannot contain text content.
The content type is defined as element-only." is expected on the text. In the below screenshot, inserting a comment in between the text and the element, and the diagnostic range switches to the comment even though it is still expected on the text.

See OpenLiberty/liberty-language-server#163 for more details. Observed on server.xml and pom.xml files.
Adding text to an XML element and the diagnostic "Element 'server' cannot contain text content.
The content type is defined as element-only." is expected on the text. In the below screenshot, inserting a comment in between the text and the element, and the diagnostic range switches to the comment even though it is still expected on the text.
See OpenLiberty/liberty-language-server#163 for more details. Observed on
server.xmlandpom.xmlfiles.