[Solved] java – SAXparserException: content is not allowed in prolog
This is explained by @MikeSokolov in the first of your links. Quote: Another thing that often happens is a UTF-8 BOM (byte order mark), which is allowed before the XML declaration can be treated as whitespace if the document is handed as a stream of characters to an XML parser rather than as a stream … Read more