How to fix the «Character content other than whitespace is not allowed» XML DOM error?

xml
bug-fix

(Dmitry Fedyuk) #1

Set a breakpoint to the following line of the \Magento\Framework\Config\Dom::_initDom method:

Then analyse the problem document.
In my case, the error was caused by the following incorrect code:

02


How did I upgrade gymstar.ca from Magento 2.1.9 to 2.2.6?