Saturday, May 19, 2012

A pseudo attribute name is expected solution

A pseudo attribute name is expected

If you get the message "A pseudo attribute name is expected" when validating your xml file you have probably done a mistake typing your encoding declaration.
The culprit code should look like :

1.<?xml version="1.0" encoding="UTF-8">
instead of
1.<?xml version="1.0" encoding="UTF-8"?>
There is a very small difference and it has nothing to do with the description of the error message. You have forgotten a question mark at the end of your encoding declaration.

6 comments:

  1. I had indeed forgotten the question mark. Thanks.

    ReplyDelete
  2. Just saved me a good deal of frustration, thanks.

    ReplyDelete
  3. mine has the question mark, still got this erorr

    ReplyDelete
  4. super stupid mistake, havnt mention that

    ReplyDelete
  5. if you used lombok with compile/implementation scope , i got this.
    change scope to compileOnly

    ReplyDelete