Question: post content is not allowed in prolog?
Answer: Due to some internal bug, the error Content is not allowed in prolog also appears if the file content itself is 100% correct but you are supplying the file name like C:\Data\#22\file. How to check: If you move your file into a path without special characters and the error disappears, then it was this issue.