What does the error message “content is not allowed in prolog” mean in XML?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
well mate, it’s an error message that you get typically when you’re working with xml files. the “content is not allowed in prolog” error basically tells you that something’s going wrong at the very start of your xml file, i.e., the prolog part, which is supposed to strictly contain only xml declaration and/or doctype. there might be some unplanned, for example a hidden character, or unwanted spaces right before your xml declaration. or maybe an incorrect encoding format. so you may wanna check and clean up the start of your document or check the encoding format again. also, strictly stick to utf-8 encoding, trust me mate it’s the safest bet. keep experimenting till you find what’s messed up, cause xml is quite picky about its syntax and well, won’t budge until you fix it right.