xml content not allowed in prolog

If you get this error:

build.xml:2: Content is not allowed in prolog

The first thing to check is that you don’t have anything before:

<?xml version="1.0" encoding="utf-8"?>

The second, check that you don’t have a strange encoding. For example, one of the reasons it failed for me, was that build.xml was encoded using UCS2 Little Endian.


0 Responses to “xml content not allowed in prolog”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog Stats

  • 238,127 hits

%d bloggers like this: