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. Yo estaba escribiendo un lector de datos XML en Java utilizando el JDK incorporado las bibliotecas de procesamiento de XML (JAXP) cuando la persistencia de éxito a través de este molesto con excepción mensaje de error: Un pseudo nombre de atributo se espera. The error is displayed on the first line itself. El error se muestra en la primera línea.

Google search wasn’t of much help. De búsqueda de Google no fue de mucha ayuda. I tried few suggestions, which were not of any use. He intentado algunas sugerencias, que no eran de cualquier uso. Then I noticed the obvious. Entonces me di cuenta de lo obvio.

My xml instruction was: Mi XML instrucción fue la siguiente:
< ?xml version="1.0" > <? Xml version = "1,0">

It was a typo. Se trata de un error tipográfico. It should have been: No debería haber sido:
< ?xml version="1.0" ?> <? Xml version = "1,0"?>

Obviously the xml instruction was illegal. Es evidente que la instrucción xml era ilegal. However the error message was cryptic and gave no hint to the actual cause of the problem. Sin embargo, el mensaje de error crípticos y se dio ninguna pista a la causa real del problema.