Friday, December 2, 2011

A pseudo attribute name is expected.

If you get below mentioned error

[Fatal Error] :1:54: A pseudo attribute name is expected.
Exception in thread "main" org.xml.sax.SAXParseException: A pseudo attribute name is expected.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)

Possible reason could be the version and encoding information provided is not formatted correctly.
Please used the below syntax and try again.

?>

Note the ? at the end, I have missed that and it gave above error.