I was writing a xml data reader in Java using JDK’s inbuilt XML processing libraries (JAXP) when I persistently hit across this annoying exception with error message: A pseudo attribute name is expected. Eu estava escrevendo um leitor dados XML em Java usando JDK's inerente bibliotecas processamento XML (JAXP) quando eu persistentemente atingida em toda esta aborrecido com excepção mensagem de erro: Um atributo pseudo nome é esperado. The error is displayed on the first line itself. O erro é exibida na primeira linha em si.

Google search wasn’t of much help. A pesquisa do Google não foi de grande ajuda. I tried few suggestions, which were not of any use. Eu tentei algumas sugestões, que não eram de qualquer utilização. Then I noticed the obvious. Então eu observei o óbvio.

My xml instruction was: Meu XML instrução foi:
< ?xml version="1.0" > <? Xml version = "1,0">

It was a typo. Foi um erro tipográfico. It should have been: Ela deveria ter sido:
< ?xml version="1.0" ?> <? Xml version = "1,0"?>

Obviously the xml instruction was illegal. É evidente que o xml instrução era ilegal. However the error message was cryptic and gave no hint to the actual cause of the problem. No entanto a mensagem de erro foi crítico e deu nenhuma dica para a verdadeira causa do problema.