org.xml.sax.SAXParseException: Content is not allowed in prolog
This is often caused by a white space before the XML declaration, but it could be any text, like a dash or any character. I say often caused by white space because people assume white space is always ignorable, but that’s not the case here. Another thing that often happens is a UTF-8 BOM (byte order mark), which is allowed … Read more